feat: removed the need to pass /api for cli domain

This commit is contained in:
Sheen Capadngan
2024-05-29 13:51:20 +08:00
parent f3eda1fd13
commit 7c6b6653f5
6 changed files with 18 additions and 18 deletions

View File

@@ -43,6 +43,7 @@ func init() {
rootCmd.PersistentFlags().Bool("silent", false, "Disable output of tip/info messages. Useful when running in scripts or CI/CD pipelines.")
rootCmd.PersistentPreRun = func(cmd *cobra.Command, args []string) {
silent, err := cmd.Flags().GetBool("silent")
config.INFISICAL_URL = util.AppendAPIEndpoint(config.INFISICAL_URL)
if err != nil {
util.HandleError(err)
}