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 Nov 13, 2024
1 parent 9de912e commit 2f6d53a
Show file tree
Hide file tree
Showing 58 changed files with 2,133 additions and 1,820 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 2f6d53a

Please sign in to comment.