Skip to content

Commit

Permalink
URLs for add-env corrected. Markdown doc updated.
Browse files Browse the repository at this point in the history
- Mistakes in example URLs for add-env command corrected
- Markdown documentation for 'add-env' generated
- Markdown documentation for 'set' corrected to reflect
  default export directory for various platforms
  • Loading branch information
jvandborg authored and harsha89 committed Oct 23, 2019
1 parent e1d7998 commit bc28d32
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions import-export-cli/cmd/addEnv.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,14 @@ const addEnvCmdLiteral = "add-env"
const addEnvCmdShortDesc = "Add Environment to Config file"
const addEnvCmdLongDesc = "Add new environment and its related endpoints to the config file"
const addEnvCmdExamples = utils.ProjectName + ` ` + addEnvCmdLiteral + ` -n production \
--registration https://localhost:9763/client-registration/v0.14/register \
--registration http://localhost:9763/client-registration/v0.14/register \
--apim https://localhost:9443 \
--token https://localhost:8243/token
` + utils.ProjectName + ` ` + addEnvCmdLiteral + ` -n test \
--registration https://localhost:9763/client-registration/v0.14/register \
--import-export https://localhost:9443/api-import-export-2.6.0-v0 \
--list https://localhsot:9443/api/am/publisher/v0.14/apis \
--list https://localhost:9443/api/am/publisher/v0.14/apis \
--apim https://localhost:9443 \
--token https://localhost:8243/token
Expand Down
4 changes: 2 additions & 2 deletions import-export-cli/docs/apimcli_add-env.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ apimcli add-env [flags]

```
apimcli add-env -n production \
--registration https://localhost:9763/client-registration/v0.14/register \
--registration http://localhost:9763/client-registration/v0.14/register \
--apim https://localhost:9443 \
--token https://localhost:8243/token
apimcli add-env -n test \
--registration https://localhost:9763/client-registration/v0.14/register \
--import-export https://localhost:9443/api-import-export-2.6.0-v0 \
--list https://localhsot:9443/api/am/publisher/v0.14/apis \
--list https://localhost:9443/api/am/publisher/v0.14/apis \
--apim https://localhost:9443 \
--token https://localhost:8243/token
Expand Down
2 changes: 1 addition & 1 deletion import-export-cli/docs/apimcli_set.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ apimcli set --http-request-timeout 5000
### Options

```
--export-directory string Path to directory where APIs should be saved (default "/home/kasun/.wso2apimcli/exported")
--export-directory string Path to directory where APIs should be saved (default on Unix, including macOS "$HOME/.wso2apimcli/exported", default on Windows "%HOME%\.wso2apimcli\exported")
-h, --help help for set
--http-request-timeout int Timeout for HTTP Client (default 10000)
```
Expand Down

0 comments on commit bc28d32

Please sign in to comment.