github.com/kcmerrill/alfred@v0.0.0-20180727171036-06445dcb5e3d/pkg/alfred/cli.go (about) 1 package alfred 2 3 // CLI will take in os.args and return the task and argument 4 func CLI(args []string) (string, []string) { 5 // only the applicaton was passed in 6 if len(args) == 0 { 7 return "", []string{} 8 } 9 return args[0], args[1:] 10 }