We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c835dc3 commit 803793bCopy full SHA for 803793b
cli.go
@@ -1,7 +1,6 @@
1
package main
2
3
import (
4
- "errors"
5
"fmt"
6
"os"
7
@@ -28,17 +27,6 @@ func setupCommands(app *cli.App) {
28
27
Name: "create",
29
Description: "Create clusters in Codefresh",
30
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
- },
42
Flags: []cli.Flag{
43
cli.StringFlag{
44
Name: "token",
0 commit comments