Skip to content

Commit 26117cd

Browse files
committed
Add comment to ImportProfile function
1 parent 5787df1 commit 26117cd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

internal/pkg/config/profiles.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,9 @@ func DeleteProfile(p *print.Printer, profile string) error {
332332
return nil
333333
}
334334

335+
// ImportProfile imports a profile configuration
336+
// It imports the profile with the name profileName and a config json.
337+
// If setAsActive is true, it set the new profile as the active profile.
335338
func ImportProfile(p *print.Printer, profileName, config string, setAsActive bool) error {
336339
err := ValidateProfile(profileName)
337340
if err != nil || profileName == DefaultProfileName {

0 commit comments

Comments
 (0)