Skip to content

Commit

Permalink
chore: Change New verbiage to Create
Browse files Browse the repository at this point in the history
  • Loading branch information
m8rmclaren committed Nov 7, 2023
1 parent c23b156 commit a1cb13c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmd/storeTypes.go
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ func init() {
storeTypesCmd.AddCommand(storesTypesListCmd)

// GET commands
storeTypesCmd.AddCommand(NewCmdStoreTypesGet())
storeTypesCmd.AddCommand(CreateCmdStoreTypesGet())

// CREATE command
var listValidStoreTypes bool
Expand Down
4 changes: 2 additions & 2 deletions cmd/storeTypes_get.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func (f *StoreTypesGetFlags) AddFlags(flags *pflag.FlagSet) {
flags.BoolVarP(f.outputToIntegrationManifest, "output-to-integration-manifest", "", false, "Update the integration manifest with the store type. It overrides the store type in the manifest if it already exists. If the integration manifest does not exist in the current directory, it will be created.")
}

func NewCmdStoreTypesGet() *cobra.Command {
func CreateCmdStoreTypesGet() *cobra.Command {
storeTypesGetFlags := CreateStoreTypesGetFlags()

cmd := &cobra.Command{
Expand Down Expand Up @@ -118,7 +118,7 @@ func NewCmdStoreTypesGet() *cobra.Command {

// If outputToIntegrationManifest is true, update the integration manifest with the store type
if options.outputToIntegrationManifest {
imv1 := manifestv1.NewIntegrationManifest()
imv1 := manifestv1.CreateIntegrationManifest()
err = imv1.LoadFromFilesystem()
if err != nil {
return err
Expand Down
2 changes: 1 addition & 1 deletion pkg/keyfactor/v1/integration_manifest.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ type PamDetails struct {
DbName string `json:"dbName,omitempty"`
}

func NewIntegrationManifest() *IntegrationManifest {
func CreateIntegrationManifest() *IntegrationManifest {
return &IntegrationManifest{
Schema: imSchema,
}
Expand Down

0 comments on commit a1cb13c

Please sign in to comment.