This repository has been archived by the owner on Nov 9, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 66
RFE: show app_specific.rb methods in help output #374
Milestone
Comments
+1 I have been thinking about that recently as well. Not sure you can list them using introspection, but you can append to the Help class.. |
Experimented a bit. How about: Help.rb changes: def self.usage
help = <<-DOC.strip_heredoc
Usage:
ml [ENVIRONMENT] COMMAND [ARGS]
General commands (no environment):
...
DOC
help += app_specific || ''
help += <<-DOC.strip_heredoc
All commands can be run with -h or --help for more information.
DOC
help
end
def self.app_specific
#stub
end And then you append this to app_specific.rb: class Help
def self.app_specific
<<-DOC.strip_heredoc
App-specific commands:
example Installs app-specific alerting
DOC
end
end |
grtjn
added a commit
to grtjn/roxy
that referenced
this issue
Feb 20, 2015
… help, added sample code in app_specific
grtjn
added a commit
to grtjn/roxy
that referenced
this issue
Feb 20, 2015
… help, added sample code in app_specific
Fixed in dev |
Awesome, thanks Geert! |
grtjn
added a commit
to grtjn/roxy
that referenced
this issue
Feb 24, 2015
… help, added sample code in app_specific
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I'm often opening up or
cat
'ingdeploy/app_specific.rb
to see what custom methods are available. It'd be handy to have them available in the./ml -h
command output.The text was updated successfully, but these errors were encountered: