diff --git a/pkg/depository/create.go b/pkg/depository/create.go index f86d03a..46103f4 100644 --- a/pkg/depository/create.go +++ b/pkg/depository/create.go @@ -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 diff --git a/pkg/depository/get.go b/pkg/depository/get.go index 00110e1..b74de65 100644 --- a/pkg/depository/get.go +++ b/pkg/depository/get.go @@ -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 diff --git a/pkg/market/repository/create.go b/pkg/market/repository/create.go index e106d78..5d48fcc 100644 --- a/pkg/market/repository/create.go +++ b/pkg/market/repository/create.go @@ -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")