Class: Muxify::CLI
- Inherits:
-
Thor
- Object
- Thor
- Muxify::CLI
- Defined in:
- lib/muxify/cli.rb
Instance Method Summary collapse
- #add(root = Dir.pwd) ⇒ Object
- #debug(root = Dir.pwd) ⇒ Object
- #stop(name = File.basename(Dir.pwd)) ⇒ Object
Instance Method Details
#add(root = Dir.pwd) ⇒ Object
10 11 12 |
# File 'lib/muxify/cli.rb', line 10 def add(root = Dir.pwd) Muxify::Linker.(root: root) end |
#debug(root = Dir.pwd) ⇒ Object
15 16 17 |
# File 'lib/muxify/cli.rb', line 15 def debug(root = Dir.pwd) puts Muxify::Builder.(root) end |
#stop(name = File.basename(Dir.pwd)) ⇒ Object
20 21 22 |
# File 'lib/muxify/cli.rb', line 20 def stop(name = File.basename(Dir.pwd)) Kernel.system("tmux kill-session -t #{name}") end |