1- package _import
1+ package importProfile
22
33import (
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
6363func 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 ))
0 commit comments