From 02d0951caff6593cfcf39c004577675e662bde31 Mon Sep 17 00:00:00 2001 From: Amanda D'Errico Date: Fri, 29 Jul 2022 17:29:11 -0400 Subject: [PATCH 1/3] Introduced examples for setting default profiles in Examples section. Signed-off-by: Amanda D'Errico --- CHANGELOG.md | 4 ++++ packages/imperative/src/config/cmd/set/set.definition.ts | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 347143695..25956643e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ All notable changes to the Imperative package will be documented in this file. +## Recent Changes + +- Introduced examples for setting default profiles in `zowe config set` Examples section. [#1428](https://github.com/zowe/zowe-cli/issues/1428) + ## `5.3.6` - BugFix: Removed some extraneous dependencies. [#477](https://github.com/zowe/imperative/issues/477) diff --git a/packages/imperative/src/config/cmd/set/set.definition.ts b/packages/imperative/src/config/cmd/set/set.definition.ts index 63f75a3af..c9179ab02 100644 --- a/packages/imperative/src/config/cmd/set/set.definition.ts +++ b/packages/imperative/src/config/cmd/set/set.definition.ts @@ -75,6 +75,14 @@ export const setDefinition: ICommandDefinition = { { description: "Store the property value", options: `"profiles.host1.profiles.service1.properties.setting" "value" --secure` + }, + { + description: "Set a default zosmf profile", + options: `"defaults.zosmf" "zosmfProfileName"` + }, + { + description: "Set a default tso profile", + options: `"defaults.tso" "tsoProfileName"` } ] }; From 2a884135732469d2d3dbb525c5119dbdd2a1020b Mon Sep 17 00:00:00 2001 From: Amanda D'Errico Date: Fri, 29 Jul 2022 17:35:11 -0400 Subject: [PATCH 2/3] Introduced examples for setting default profiles in Examples section Signed-off-by: Amanda D'Errico --- packages/imperative/src/config/cmd/set/set.definition.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/imperative/src/config/cmd/set/set.definition.ts b/packages/imperative/src/config/cmd/set/set.definition.ts index c9179ab02..fcaf5d4c6 100644 --- a/packages/imperative/src/config/cmd/set/set.definition.ts +++ b/packages/imperative/src/config/cmd/set/set.definition.ts @@ -22,7 +22,6 @@ export const setDefinition: ICommandDefinition = { { name: "property", description: "The property to set. You may specify a path using dot notation (e.g. profiles.host1.profiles.service1.properties.setting)", - required: true, type: "string" }, { From 4551f9c49cf95137152fe260a28c0bcda6f1a82c Mon Sep 17 00:00:00 2001 From: Amanda D'Errico Date: Wed, 3 Aug 2022 09:23:08 -0400 Subject: [PATCH 3/3] small change for setDefinition method Signed-off-by: Amanda D'Errico --- packages/imperative/src/config/cmd/set/set.definition.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/imperative/src/config/cmd/set/set.definition.ts b/packages/imperative/src/config/cmd/set/set.definition.ts index fcaf5d4c6..c9179ab02 100644 --- a/packages/imperative/src/config/cmd/set/set.definition.ts +++ b/packages/imperative/src/config/cmd/set/set.definition.ts @@ -22,6 +22,7 @@ export const setDefinition: ICommandDefinition = { { name: "property", description: "The property to set. You may specify a path using dot notation (e.g. profiles.host1.profiles.service1.properties.setting)", + required: true, type: "string" }, {