Class: Yoda::Cli::Top
- Inherits:
-
Thor
- Object
- Thor
- Yoda::Cli::Top
- Defined in:
- lib/yoda/cli.rb
Instance Method Summary collapse
- #analyze_deps(path) ⇒ Object
- #complete(position) ⇒ Object
- #console ⇒ Object
- #infer(position) ⇒ Object
- #server ⇒ Object
- #setup ⇒ Object
- #version ⇒ Object
Instance Method Details
#analyze_deps(path) ⇒ Object
69 70 71 72 73 |
# File 'lib/yoda/cli.rb', line 69 def analyze_deps(path) return self.class.command_help(shell, __method__) if [:help] Cli::AnalyzeDeps.run(path) end |
#complete(position) ⇒ Object
48 49 50 51 52 |
# File 'lib/yoda/cli.rb', line 48 def complete(position) return self.class.command_help(shell, __method__) if [:help] Cli::Complete.run(position) end |
#console ⇒ Object
55 56 57 58 59 |
# File 'lib/yoda/cli.rb', line 55 def console return self.class.command_help(shell, __method__) if [:help] Cli::Console.run end |
#infer(position) ⇒ Object
41 42 43 44 45 |
# File 'lib/yoda/cli.rb', line 41 def infer(position) return self.class.command_help(shell, __method__) if [:help] Cli::Infer.run(position) end |
#server ⇒ Object
62 63 64 65 66 |
# File 'lib/yoda/cli.rb', line 62 def server return self.class.command_help(shell, __method__) if [:help] Server.new.run end |
#setup ⇒ Object
32 33 34 35 36 37 38 |
# File 'lib/yoda/cli.rb', line 32 def setup return self.class.command_help(shell, __method__) if [:help] Instrument.instance.hear(initialization_progress: method(:on_progress), registry_dump: method(:on_progress)) do Store.setup(dir: Dir.pwd, force_build: [:force_build]) end end |