Class: Muxify::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/muxify/cli.rb

Instance Method Summary collapse

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