diff options
author | Brian Cully <bjc@kublai.com> | 2015-07-10 20:16:11 +0000 |
---|---|---|
committer | Brian Cully <bjc@kublai.com> | 2015-07-10 20:16:11 +0000 |
commit | 16815048d2f7f770a454597a39838e63014132f2 (patch) | |
tree | 57d843693a510697ea5bb2487eea07570e48be03 /cmd_pid.go | |
parent | f8f30593d7df521d45fd85e1d90fb7b7fe54a980 (diff) | |
download | goctl-16815048d2f7f770a454597a39838e63014132f2.tar.gz goctl-16815048d2f7f770a454597a39838e63014132f2.zip |
Add builtin 'help' command.
Allows handlers to output helpful information.
Diffstat (limited to 'cmd_pid.go')
-rw-r--r-- | cmd_pid.go | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -13,6 +13,10 @@ func (cmd cmdPID) Name() string { return "pid" } +func (cmd cmdPID) Help() string { + return "return the Unix process ID of this program" +} + func (cmd cmdPID) Run(_ *Goctl, _ []string) string { return pid } |