Skip to content

Commit 200d64b

Browse files
committed
Refinements in descriptions of import command
1 parent 26117cd commit 200d64b

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

internal/cmd/config/profile/import/import.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package _import
1+
package importProfile
22

33
import (
44
"github.com/spf13/cobra"
@@ -32,11 +32,11 @@ func NewCmd(p *print.Printer) *cobra.Command {
3232
Example: examples.Build(
3333
examples.NewExample(
3434
`Import a config with name "PROFILE_NAME" from file "./config.json"`,
35-
"$ stackit config profile --name PROFILE_NAME --config `@./config.json`",
35+
"$ stackit config profile import --name PROFILE_NAME --config `@./config.json`",
3636
),
3737
examples.NewExample(
38-
`Import a config with name "PROFILE_NAME" from file "./config.json" and set not as active`,
39-
"$ stackit config profile --name PROFILE_NAME --config `@./config.json` --no-set",
38+
`Import a config with name "PROFILE_NAME" from file "./config.json" and do not set as active`,
39+
"$ stackit config profile import --name PROFILE_NAME --config `@./config.json` --no-set",
4040
),
4141
),
4242
Args: args.NoArgs,
@@ -62,7 +62,7 @@ func NewCmd(p *print.Printer) *cobra.Command {
6262

6363
func configureFlags(cmd *cobra.Command) {
6464
cmd.Flags().String(nameFlag, "", "Profile name")
65-
cmd.Flags().VarP(flags.ReadFromFileFlag(), configFlag, "c", "Config to be imported")
65+
cmd.Flags().VarP(flags.ReadFromFileFlag(), configFlag, "c", "File where configuration will be imported from")
6666
cmd.Flags().Bool(noSetFlag, false, "Set the imported profile not as active")
6767

6868
cobra.CheckErr(cmd.MarkFlagRequired(nameFlag))

internal/cmd/config/profile/import/import_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package _import
1+
package importProfile
22

33
import (
44
_ "embed"

0 commit comments

Comments
 (0)