Class: GitFit::GhConfigCLI

Inherits:
Thor
  • Object
show all
Includes:
GhHelpers
Defined in:
lib/git_fit/cli/gh_cli.rb

Instance Method Summary collapse

Methods included from GhHelpers

#detect_repo, #gh

Instance Method Details

#get(key) ⇒ Object



56
57
58
# File 'lib/git_fit/cli/gh_cli.rb', line 56

def get(key)
  puts gh("variable", "get", key)
end

#listObject



46
47
48
# File 'lib/git_fit/cli/gh_cli.rb', line 46

def list
  puts gh("variable", "list")
end

#set(key, value) ⇒ Object



51
52
53
# File 'lib/git_fit/cli/gh_cli.rb', line 51

def set(key, value)
  puts gh("variable", "set", key, "--body", value)
end