Skip to content

Commit

Permalink
Merge pull request #45 from bjwswang/dev
Browse files Browse the repository at this point in the history
chore: set default host url for saas service
  • Loading branch information
bjwswang authored Jun 19, 2023
2 parents 274d455 + 092beab commit 646060c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/depository/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ func NewCreateDepositoryCmd() *cobra.Command {
},
}
// Set up command line flags for depository
cmd.Flags().StringP("host", "", "", "host URL of depository server")
cmd.Flags().StringP("host", "", "http://localhost:9999", "host URL of depository server")
cmd.Flags().StringP("wallet", "w", common.DefaultWalletConfigDir, "wallet path")
cmd.Flags().StringP("account", "a", "", "account to be used")
// Depository related info
Expand Down
2 changes: 1 addition & 1 deletion pkg/depository/get.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ func NewGetDepositoryCmd(option common.Options) *cobra.Command {
cmd.Flags().StringP("kid", "k", "", "search depository by kid")
cmd.Flags().StringP("name", "n", "", "search depository by name")
cmd.Flags().StringP("contentName", "c", "", "search depository by content name")
cmd.Flags().StringP("host", "", "", "bc-saas server")
cmd.Flags().StringP("host", "", "http://localhost:9999", "bc-saas server")
_ = viper.BindPFlag("saas.depository.server", cmd.Flags().Lookup("host"))

return cmd
Expand Down
2 changes: 1 addition & 1 deletion pkg/market/repository/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func NewCreateMarketRepoCmd() *cobra.Command {
}

// define flags
cmd.Flags().StringP("host", "", "", "host URL of market server")
cmd.Flags().StringP("host", "", "http://localhost:9998", "host URL of market server")
cmd.Flags().StringP("wallet", "w", common.DefaultWalletConfigDir, "wallet path")
cmd.Flags().StringP("account", "a", "", "account to be used")
cmd.Flags().String("repo-url", "", "repository url")
Expand Down

0 comments on commit 646060c

Please sign in to comment.