Skip to content

Commit

Permalink
feat: introduce new configuration management
Browse files Browse the repository at this point in the history
  • Loading branch information
shreddedbacon committed Jul 24, 2024
1 parent 8dea96d commit d37f1b2
Show file tree
Hide file tree
Showing 78 changed files with 1,910 additions and 2,681 deletions.
4 changes: 2 additions & 2 deletions cmd/add.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ var addCmd = &cobra.Command{
Aliases: []string{"a"},
Short: "Add a project, or add notifications and variables to projects or environments",
PersistentPreRun: func(cmd *cobra.Command, args []string) {
validateToken(lagoonCLIConfig.Current) // get a new token if the current one is invalid
validateToken(lContext.Name) // get a new token if the current one is invalid
},
}

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

Expand Down
Loading

0 comments on commit d37f1b2

Please sign in to comment.