summaryrefslogtreecommitdiffstats
path: root/cmd_pid.go
diff options
context:
space:
mode:
authorBrian Cully <bjc@kublai.com>2015-07-10 20:16:11 +0000
committerBrian Cully <bjc@kublai.com>2015-07-10 20:16:11 +0000
commit16815048d2f7f770a454597a39838e63014132f2 (patch)
tree57d843693a510697ea5bb2487eea07570e48be03 /cmd_pid.go
parentf8f30593d7df521d45fd85e1d90fb7b7fe54a980 (diff)
downloadgoctl-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.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd_pid.go b/cmd_pid.go
index d7fd3fe..3bdb1f3 100644
--- a/cmd_pid.go
+++ b/cmd_pid.go
@@ -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
}