Class: HelpM
- Inherits:
-
Object
- Object
- HelpM
- Defined in:
- lib/actions/help.rb
Instance Method Summary collapse
- #bin ⇒ Object
- #common_opt ⇒ Object
- #org ⇒ Object
- #org_repo ⇒ Object
- #orgs_teams ⇒ Object
- #user ⇒ Object
- #user_repo ⇒ Object
- #welcome ⇒ Object
Instance Method Details
#bin ⇒ Object
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_opt ⇒ Object
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 |
#org ⇒ Object
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_repo ⇒ Object
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_teams ⇒ Object
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 |
#user ⇒ Object
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_repo ⇒ Object
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 |
#welcome ⇒ Object
54 55 56 57 |
# File 'lib/actions/help.rb', line 54 def welcome puts "\nGitHub Education Shell!" puts "_______________________\n\n" end |