Skip to content

Commit e568a0a

Browse files
committed
feat: introduce new configuration management
1 parent 83c2884 commit e568a0a

58 files changed

Lines changed: 2104 additions & 1813 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

cmd/add.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ var addCmd = &cobra.Command{
99
Aliases: []string{"a"},
1010
Short: "Add a project, or add notifications and variables to projects or environments",
1111
PersistentPreRun: func(cmd *cobra.Command, args []string) {
12-
validateToken(lagoonCLIConfig.Current) // get a new token if the current one is invalid
12+
validateToken(lContext.Name) // get a new token if the current one is invalid
1313
},
1414
}
1515

@@ -18,7 +18,7 @@ var addNotificationCmd = &cobra.Command{
1818
Aliases: []string{"n"},
1919
Short: "Add notifications or add notifications to projects",
2020
PersistentPreRun: func(cmd *cobra.Command, args []string) {
21-
validateToken(lagoonCLIConfig.Current) // get a new token if the current one is invalid
21+
validateToken(lContext.Name) // get a new token if the current one is invalid
2222
},
2323
}
2424

0 commit comments

Comments
 (0)