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 Aug 22, 2024
1 parent e4ad4ce commit b97100f
Show file tree
Hide file tree
Showing 56 changed files with 1,939 additions and 1,790 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 b97100f

Please sign in to comment.