Class: HelpM

Inherits:
Object
  • Object
show all
Defined in:
lib/actions/help.rb

Instance Method Summary collapse

Instance Method Details

#binObject



59
60
61
62
63
64
65
66
67
68
69
70
71
# File 'lib/actions/help.rb', line 59

def bin
  puts "\nList of commands\n\n"
  puts "ghedsh"
  puts "Run with default configuration. Configuration files are being set in #{ENV['HOME']}"
  puts "ghedsh --token TOKEN"
  puts "Provides a github access token by argument. Also works with ghedsh -t"
  puts "ghedsh --user USERNAME"
  puts "Change your user from your user's list. Also works with ghedsh -u"
  puts "ghedsh --version"
  puts "Show the current version of GHEDSH. Also works with ghedsh -v"
  puts "ghedsh --help"
  print "Show the executable options. Also works with ghedsh -h\n\n"
end

#common_optObject



46
47
48
49
50
51
52
# File 'lib/actions/help.rb', line 46

def common_opt()
  puts "\nList of commands.\n"
  print "exit => exit from this program\n"
  print "help => list of commands available\n"
  print "cd => go to the path\n"
  print "! => execute a bash command\n"
end

#orgObject



14
15
16
17
18
19
20
21
22
23
24
# File 'lib/actions/help.rb', line 14

def org()
  self.common_opt
  print "repos => list the repositories of your organization\n"
  print "clone_repo => clone a repository or a list of repositories using a regular expresion\n"
  print "set => move you to a specific repository\n"
  print "members => members of a organization\n"
  print "teams => teams of a organization\n"
  print "create_repository => create a repository in your organization\n"
  print "delete_team => delete a team in you organization. Expected the name of the team\n"
  print "create_team => create a team in the organization. Expected the name of the team, and/or members given one by one\n\n"
end

#org_repoObject



26
27
28
29
30
# File 'lib/actions/help.rb', line 26

def org_repo()
  self.common_opt
  print "commits => show the list of commits from the repository\n"
  print "col => show the list of collaborators from the repository\n\n"
end

#orgs_teamsObject



32
33
34
35
36
37
38
# File 'lib/actions/help.rb', line 32

def orgs_teams()
  self.common_opt
  print "members => members of the team\n"
  print "clone_repo => clone a repository or a list of repositories using a regular expresion\n"
  print "create_repository => create a repository to this team\n"
  print "add_to_team => add a member in the team\n\n"
end

#userObject



4
5
6
7
8
9
10
11
12
# File 'lib/actions/help.rb', line 4

def user()
  self.common_opt
  print "orgs => show your organizations\n"
  print "repos => list your repositories\n\n"
  print "clone_repo => clone a repository or a list of repositories using a regular expresion\n"
  print "create_repository => create a repository in your personal account\n"
  print "set => move you to a specific repository\n"

end

#user_repoObject



40
41
42
43
44
# File 'lib/actions/help.rb', line 40

def user_repo()
  self.common_opt
  print "commits => show the list of commits from the repository\n"
  print "col => show the list of collaborators from the repository\n\n"
end

#welcomeObject



54
55
56
57
# File 'lib/actions/help.rb', line 54

def welcome
  puts "\nGitHub Education Shell!"
  puts "_______________________\n\n"
end