Skip to content

Commit 803793b

Browse files
author
olegs-codefresh
committed
Remove unused implementation
1 parent c835dc3 commit 803793b

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

cli.go

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package main
22

33
import (
4-
"errors"
54
"fmt"
65
"os"
76

@@ -28,17 +27,6 @@ func setupCommands(app *cli.App) {
2827
Name: "create",
2928
Description: "Create clusters in Codefresh",
3029
Action: create,
31-
Before: func(c *cli.Context) error {
32-
jwtFromOsEnv := os.Getenv("CODEFRESH_TOKEN")
33-
if jwtFromOsEnv != "" {
34-
c.Set("token", jwtFromOsEnv)
35-
}
36-
if !c.IsSet("token") {
37-
fmt.Printf("not set")
38-
return errors.New("--token nigther CODEFREHS_TOKEN is set")
39-
}
40-
return nil
41-
},
4230
Flags: []cli.Flag{
4331
cli.StringFlag{
4432
Name: "token",

0 commit comments

Comments
 (0)