From e294b1f95429ac1840d56e6cf56d2ead4c562154 Mon Sep 17 00:00:00 2001 From: Jae Kwon Date: Fri, 24 Apr 2015 13:12:53 -0700 Subject: [PATCH 1/4] Debora has a pretty list. --- cmd/debora/main.go | 32 +++++++++++++++++++------------- process/process.go | 2 ++ 2 files changed, 21 insertions(+), 13 deletions(-) diff --git a/cmd/debora/main.go b/cmd/debora/main.go index fe109dd3..51e7360d 100644 --- a/cmd/debora/main.go +++ b/cmd/debora/main.go @@ -32,6 +32,11 @@ func main() { Value: "default", Usage: "uses ~/.debora/.cfg", } + labelFlag = cli.StringFlag{ + Name: "label", + Value: "_", + Usage: "label of the process, or _ by default", + } bgFlag = cli.BoolFlag{ Name: "bg", Usage: "if set, runs as a background daemon", @@ -68,6 +73,7 @@ func main() { Usage: "run process", Action: cliRunProcess, Flags: []cli.Flag{ + labelFlag, bgFlag, inputFlag, }, @@ -125,15 +131,14 @@ func cliGetStatus(c *cli.Context) { func cliRunProcess(c *cli.Context) { args := c.Args() - if len(args) < 2 { - Exit("Must specify