Skip to content

Commit

Permalink
Merge pull request #562 from npamudika/master
Browse files Browse the repository at this point in the history
Add missing doc changes
  • Loading branch information
npamudika authored Dec 18, 2020
2 parents 4ce74c5 + 19d1d6e commit 3b697de
Show file tree
Hide file tree
Showing 4 changed files with 185 additions and 0 deletions.
1 change: 1 addition & 0 deletions import-export-cli/docs/apictl.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ apictl [flags]
* [apictl k8s](apictl_k8s.md) - Kubernetes mode based commands
* [apictl login](apictl_login.md) - Login to an API Manager
* [apictl logout](apictl_logout.md) - Logout to from an API Manager
* [apictl mg](apictl_mg.md) - Handle Microgateway related operations
* [apictl mi](apictl_mi.md) - Micro Integrator related commands
* [apictl remove](apictl_remove.md) - Remove an environment
* [apictl set](apictl_set.md) - Set configuration parameters
Expand Down
30 changes: 30 additions & 0 deletions import-export-cli/docs/apictl_mg.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
## apictl mg

Handle Microgateway related operations

### Synopsis

Initialize, Add, Update an apictl project to the microgateway

```
apictl mg [flags]
```

### Options

```
-h, --help help for mg
```

### Options inherited from parent commands

```
-k, --insecure Allow connections to SSL endpoints without certs
--verbose Enable verbose mode
```

### SEE ALSO

* [apictl](apictl.md) - CLI for Importing and Exporting APIs and Applications and Managing WSO2 Micro Integrator
* [apictl mg deploy](apictl_mg_deploy.md) - Deploy apictl project.

41 changes: 41 additions & 0 deletions import-export-cli/docs/apictl_mg_deploy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
## apictl mg deploy

Deploy apictl project.

### Synopsis

Deploy the apictl project in Microgateway

```
apictl mg deploy --host [control plane url] --file [file name] --username [username] --password [password] [flags]
```

### Examples

```
apictl mg deploy -h https://localhost:9095 -f qa/TwitterAPI.zip -u admin -p admin
cat ~/.mypassword | apictlmg deploy -h https://localhost:9095 -f qa/TwitterAPI.zip -u admin
```

### Options

```
-f, --file string Provide the filepath of the apictl project to be imported
-h, --help help for deploy
-c, --host string Provide the host url for the control plane with port
-p, --password string Provide the password
--skipCleanup Leave all temporary files created during import process
-u, --username string Provide the username
```

### Options inherited from parent commands

```
-k, --insecure Allow connections to SSL endpoints without certs
--verbose Enable verbose mode
```

### SEE ALSO

* [apictl mg](apictl_mg.md) - Handle Microgateway related operations

113 changes: 113 additions & 0 deletions import-export-cli/shell-completions/apictl_bash_completions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2483,6 +2483,118 @@ _apictl_logout()
noun_aliases=()
}

_apictl_mg_deploy()
{
last_command="apictl_mg_deploy"

command_aliases=()

commands=()

flags=()
two_word_flags=()
local_nonpersistent_flags=()
flags_with_completion=()
flags_completion=()

flags+=("--file=")
two_word_flags+=("--file")
two_word_flags+=("-f")
local_nonpersistent_flags+=("--file")
local_nonpersistent_flags+=("--file=")
local_nonpersistent_flags+=("-f")
flags+=("--help")
flags+=("-h")
local_nonpersistent_flags+=("--help")
local_nonpersistent_flags+=("-h")
flags+=("--host=")
two_word_flags+=("--host")
two_word_flags+=("-c")
local_nonpersistent_flags+=("--host")
local_nonpersistent_flags+=("--host=")
local_nonpersistent_flags+=("-c")
flags+=("--password=")
two_word_flags+=("--password")
two_word_flags+=("-p")
local_nonpersistent_flags+=("--password")
local_nonpersistent_flags+=("--password=")
local_nonpersistent_flags+=("-p")
flags+=("--skipCleanup")
local_nonpersistent_flags+=("--skipCleanup")
flags+=("--username=")
two_word_flags+=("--username")
two_word_flags+=("-u")
local_nonpersistent_flags+=("--username")
local_nonpersistent_flags+=("--username=")
local_nonpersistent_flags+=("-u")
flags+=("--insecure")
flags+=("-k")
flags+=("--verbose")

must_have_one_flag=()
must_have_one_flag+=("--file=")
must_have_one_flag+=("-f")
must_have_one_flag+=("--host=")
must_have_one_flag+=("-c")
must_have_one_flag+=("--username=")
must_have_one_flag+=("-u")
must_have_one_noun=()
noun_aliases=()
}

_apictl_mg_help()
{
last_command="apictl_mg_help"

command_aliases=()

commands=()

flags=()
two_word_flags=()
local_nonpersistent_flags=()
flags_with_completion=()
flags_completion=()

flags+=("--insecure")
flags+=("-k")
flags+=("--verbose")

must_have_one_flag=()
must_have_one_noun=()
has_completion_function=1
noun_aliases=()
}

_apictl_mg()
{
last_command="apictl_mg"

command_aliases=()

commands=()
commands+=("deploy")
commands+=("help")

flags=()
two_word_flags=()
local_nonpersistent_flags=()
flags_with_completion=()
flags_completion=()

flags+=("--help")
flags+=("-h")
local_nonpersistent_flags+=("--help")
local_nonpersistent_flags+=("-h")
flags+=("--insecure")
flags+=("-k")
flags+=("--verbose")

must_have_one_flag=()
must_have_one_noun=()
noun_aliases=()
}

_apictl_mi_help()
{
last_command="apictl_mi_help"
Expand Down Expand Up @@ -2929,6 +3041,7 @@ _apictl_root_command()
commands+=("k8s")
commands+=("login")
commands+=("logout")
commands+=("mg")
commands+=("mi")
commands+=("remove")
commands+=("set")
Expand Down

0 comments on commit 3b697de

Please sign in to comment.