2021-08-02 01:10:41 +00:00
|
|
|
package app
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/urfave/cli/v2"
|
|
|
|
)
|
|
|
|
|
2021-08-02 06:36:35 +00:00
|
|
|
var user string
|
|
|
|
var userFlag = &cli.StringFlag{
|
|
|
|
Name: "user",
|
|
|
|
Value: "",
|
|
|
|
Destination: &user,
|
|
|
|
}
|
|
|
|
|
|
|
|
var noTTY bool
|
|
|
|
var noTTYFlag = &cli.BoolFlag{
|
|
|
|
Name: "no-tty",
|
|
|
|
Value: false,
|
|
|
|
Destination: &noTTY,
|
|
|
|
}
|
|
|
|
|
2021-08-02 01:10:41 +00:00
|
|
|
var appRunCommand = &cli.Command{
|
|
|
|
Name: "run",
|
|
|
|
Flags: []cli.Flag{
|
2021-08-02 06:36:35 +00:00
|
|
|
noTTYFlag,
|
|
|
|
userFlag,
|
2021-08-02 01:10:41 +00:00
|
|
|
},
|
|
|
|
ArgsUsage: "<service> <args>...",
|
|
|
|
}
|