Skip to content

Commit

Permalink
ENG-151 - Allow modifying hive API url
Browse files Browse the repository at this point in the history
  • Loading branch information
76creates committed Jan 15, 2025
1 parent 8127800 commit 0de28fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
1 change: 1 addition & 0 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ func init() {
RootCmd.PersistentFlags().StringVar(&util.WorkflowName, "workflow", "", "Workflow name")
RootCmd.PersistentFlags().StringVar(&util.URL, "url", "", "URL for referencing a workflow, project, or space")
RootCmd.PersistentFlags().StringVar(&util.Cfg.Dependency, "node-dependency", "", "This flag doesn't affect the execution logic of the CLI in any way and is intended for controlling node execution order on the Trickest platform only.")
RootCmd.PersistentFlags().StringVar(&util.Cfg.BaseUrl, "api-endpoint", "https://api.trickest.io/hive/", "The base Trickest platform API endpoint.")

cobra.OnInitialize(util.CreateRequest, initVaultID)

Expand Down
7 changes: 2 additions & 5 deletions util/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,9 @@ import (

type UnexpectedResponse map[string]interface{}

const (
BaseURL = "https://api.trickest.io/hive/"
)

var (
Cfg = types.Config{
BaseURL = "https://api.trickest.io/hive/"
Cfg = types.Config{
BaseUrl: BaseURL,
}
SpaceName string
Expand Down

0 comments on commit 0de28fb

Please sign in to comment.