Class: Zenflow::CLI

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

Instance Method Summary collapse

Instance Method Details

#helpObject



13
14
15
16
17
18
19
20
21
# File 'lib/zenflow/cli.rb', line 13

def help
  version
  puts
  puts "Options:"
  puts "  -h, --help      # Prints help"
  puts "  -v, --version   # Prints Zenflow version"
  puts
  super
end

#init(force = false) ⇒ Object



42
43
44
45
46
47
48
49
50
51
52
53
54
55
# File 'lib/zenflow/cli.rb', line 42

def init(force=false)
  if Zenflow::Config.configured? && !force
    already_configured
  else
    configure_github
    configure_project
    configure_branches
    configure_merge_strategy
    configure_remotes
    confirm_some_stuff
    set_up_changelog
    Zenflow::Config.save!
  end
end

#versionObject



8
9
10
# File 'lib/zenflow/cli.rb', line 8

def version
  puts "Zenflow #{Zenflow::VERSION}"
end