-
Notifications
You must be signed in to change notification settings - Fork 259
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #882 from Rajith90/3.0.x_new
- Loading branch information
Showing
6 changed files
with
28 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 9 additions & 8 deletions
17
components/micro-gateway-cli/src/main/resources/cli-help/cli-reset.help
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,24 @@ | ||
NAME | ||
micro-gw help reset - resets all the previously specified configurations. | ||
micro-gw help reset - resets the user related configurations. | ||
|
||
SYNOPSIS | ||
micro-gw reset [-c|--config] | ||
|
||
DESCRIPTION | ||
|
||
The reset command is used to clear all the previously specified configurations, such as "--server-url", "--username", | ||
etc. | ||
The reset command is used to clear all the previous user configurations, such as "--username", | ||
"--clientId", etc. This will enable different user credentials to be provided when importing APIs from | ||
WSO2 API Manager | ||
|
||
When running the setup command for the first time, those configurations are stored internally within the microgateway | ||
CLI tool and will be reused for subsequent setup commands. To rerun the setup command with a new set of configurations, | ||
the reset command needs to be run beforehand. | ||
When running the setup command for the first time, those configurations are stored internally within the | ||
microgateway CLI tool and will be reused for subsequent import commands. To rerun the import command with a | ||
different user credentials, the reset command needs to be run beforehand. | ||
|
||
Using "micro-gw reset -c <config-file>", we can reset an externally provided config file. | ||
|
||
EXAMPLES | ||
Reset all the configuration to default. | ||
Reset user related configuration to default. | ||
$ micro-gw reset | ||
|
||
Reset an external config file | ||
$ micro-gw reset -c /home/user/micro-gw/external-config.toml | ||
$ micro-gw reset -c /home/user/micro-gw/external-config.toml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters