Class: Coauthor::CLI
- Inherits:
-
Thor
- Object
- Thor
- Coauthor::CLI
- Defined in:
- lib/coauthor/cli.rb
Constant Summary collapse
- SETUP_DESCRIPTION =
'Create a template file for Github Coauthoring'.freeze
- COMMIT_DESCRIPTION =
'Git commit with the coauthor template file'.freeze
- GIT_USER_DESCRIPTION =
'Set the default git user for the current repository'.freeze
Instance Method Summary collapse
Instance Method Details
#commit ⇒ Object
17 18 19 20 |
# File 'lib/coauthor/cli.rb', line 17 def commit puts COMMIT_DESCRIPTION.colorize(:blue) Coauthor::Git::Commit.call end |
#git_user ⇒ Object
25 26 27 28 |
# File 'lib/coauthor/cli.rb', line 25 def git_user puts GIT_USER_DESCRIPTION.colorize(:blue) Coauthor::Git::User.call end |
#setup ⇒ Object
10 11 12 13 |
# File 'lib/coauthor/cli.rb', line 10 def setup puts SETUP_DESCRIPTION.colorize(:blue) Coauthor::Git::Template.call end |