Add deprecated message to subcommand pods (#592)

This commit is contained in:
Ta-Ching Chen
2018-04-04 01:26:27 +08:00
committed by GitHub
parent 2a06705320
commit 9406720e8a
2 changed files with 6 additions and 9 deletions
+2 -4
View File
@@ -117,10 +117,6 @@ func getTargetCPU(c *cli.Context) int {
func fnCreate(c *cli.Context) error {
client := getClient(c.GlobalString("server"))
if len(c.String("package")) > 0 {
fatal("--package is deprecated, please use --deploy instead.")
}
fnName := c.String("name")
if len(fnName) == 0 {
fatal("Need --name argument.")
@@ -654,6 +650,8 @@ func fnLogs(c *cli.Context) error {
func fnPods(c *cli.Context) error {
client := getClient(c.GlobalString("server"))
fmt.Println("This subcommand is deprecated and will be removed in the next release. Please use `kubectl get pods -l functionName=<name> --all-namespaces` instead.")
fnName := c.String("name")
if len(fnName) == 0 {
fatal("Need name of function, use --name")