Skip to content

Commit

Permalink
Merge pull request #357 from npamudika/master
Browse files Browse the repository at this point in the history
Add missing doc changes
  • Loading branch information
npamudika authored Jun 24, 2020
2 parents eab1fb5 + 9c85627 commit db328b0
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 13 deletions.
1 change: 1 addition & 0 deletions import-export-cli/docs/apictl_add_api.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ apictl add/update api -n petstore --from-file=./Swagger.json --replicas=3 --name
### Options

```
-a, --apiEndPoint string
-f, --from-file stringArray Path to swagger file
-h, --help help for api
-m, --mode string Property to override the deploying mode. Available modes: privateJet, sidecar
Expand Down
2 changes: 1 addition & 1 deletion import-export-cli/docs/apictl_set.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ apictl set --mode default
### Options

```
--export-directory string Path to directory where APIs should be saved (default "/Users/chaminduwso2/.wso2apictl/exported")
--export-directory string Path to directory where APIs should be saved (default "/home/naduni/.wso2apictl/exported")
-h, --help help for set
--http-request-timeout int Timeout for HTTP Client (default 10000)
-m, --mode string If mode is set to "k8s", apictl is capable of executing Kubectl commands. For example "apictl get pods" -> "kubectl get pods". To go back to the default mode, set the mode to "default" (default "default")
Expand Down
3 changes: 3 additions & 0 deletions import-export-cli/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,7 @@ github.com/onsi/gomega v1.5.0/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1Cpa
github.com/opencontainers/go-digest v1.0.0-rc1 h1:WzifXhOVOEOuFYOJAW6aQqW0TooG2iki3E3Ii+WN7gQ=
github.com/opencontainers/go-digest v1.0.0-rc1/go.mod h1:cMLVZDEM3+U2I4VmLI6N8jQYUd2OVphdqWwCJHrFt2s=
github.com/opencontainers/image-spec v1.0.1/go.mod h1:BtxoFyWECRxE4U/7sNtV5W15zMzWCbyJoFRP3s7yZA0=
github.com/openshift/api v3.9.0+incompatible/go.mod h1:dh9o4Fs58gpFXGSYfnVxGR9PnV53I8TW84pQaJDdGiY=
github.com/openzipkin/zipkin-go v0.1.6/go.mod h1:QgAqvLzwWbR/WpD4A3cGpPtJrZXNIiJc5AZX7/PBEpw=
github.com/operator-framework/operator-sdk v0.7.1-0.20190503181110-6aac3b6efddd/go.mod h1:iVyukRkam5JZa8AnjYf+/G3rk7JI1+M6GsU0sq0B9NA=
github.com/pborman/uuid v0.0.0-20170612153648-e790cca94e6c/go.mod h1:VyrYX9gd7irzKovcSS6BIIEwPRkP2Wm2m9ufcdFSJ34=
Expand Down Expand Up @@ -409,6 +410,8 @@ github.com/valyala/tcplisten v0.0.0-20161114210144-ceec8f93295a/go.mod h1:v3UYOV
github.com/wso2/k8s-api-operator v1.0.1 h1:na2r7LoyLDj+lO8558Aq+9fqG6LykhwttAmQWB+gS3k=
github.com/wso2/k8s-api-operator/api-operator v0.0.0-20200401060926-f007c2f3cfb3 h1:7pwJIGWTqvJRgbGzqy+DalE2qmWrSeSAGEqH3N75yUI=
github.com/wso2/k8s-api-operator/api-operator v0.0.0-20200401060926-f007c2f3cfb3/go.mod h1:yOoFabyChZn8ueA5QZt0XqVUox41XfmPt8tCJ060+cc=
github.com/wso2/k8s-api-operator/api-operator v0.0.0-20200624054120-bbad656881c2 h1:i+wa7IOE0TL3bwOeJnjCH4CShS6CdZI+/xJlxFqfYKU=
github.com/wso2/k8s-api-operator/api-operator v0.0.0-20200624054120-bbad656881c2/go.mod h1:Ta2JJAX8yucKOfHWPcNJdwzhxz2f546ldNfrfcef62g=
github.com/wso2/k8s-apim-operator v0.0.0-20190906090738-fc77c27673ce h1:ADEoGtxq7K/7loRxqF9EchoMIoZFL8kUt7nJ7z1Gwvs=
github.com/wso2/k8s-apim-operator v0.0.0-20190906090738-fc77c27673ce/go.mod h1:bzltphF0ElBW6n+4Ti6AHxKezZdv9yUslZtdZKq4dSA=
github.com/wso2/k8s-apim-operator v1.0.0-beta h1:k950oMxmsoN9VIJrsDQ59vpsOVQeLLiqkKuGyo7lB+o=
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,9 @@ _apictl_add_api()
flags_with_completion=()
flags_completion=()

flags+=("--apiEndPoint=")
two_word_flags+=("-a")
local_nonpersistent_flags+=("--apiEndPoint=")
flags+=("--from-file=")
two_word_flags+=("-f")
local_nonpersistent_flags+=("--from-file=")
Expand Down
24 changes: 12 additions & 12 deletions import-export-cli/shell-completions/apictl_zsh_completions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,26 @@ case $state in
;;
level2)
case $words[2] in
delete)
_arguments '2: :(api api-product app help)'
;;
export)
_arguments '2: :(api-product help)'
;;
install)
_arguments '2: :(api-operator help wso2am-operator)'
;;
list)
_arguments '2: :(api-products apis apps envs help)'
remove)
_arguments '2: :(env help)'
;;
uninstall)
_arguments '2: :(api-operator help wso2am-operator)'
;;
delete)
_arguments '2: :(api api-product app help)'
update)
_arguments '2: :(api help)'
;;
add)
_arguments '2: :(api help)'
;;
change)
_arguments '2: :(help registry)'
Expand All @@ -41,14 +47,8 @@ case $state in
import)
_arguments '2: :(api-product help)'
;;
remove)
_arguments '2: :(env help)'
;;
update)
_arguments '2: :(api help)'
;;
add)
_arguments '2: :(api help)'
list)
_arguments '2: :(api-products apis apps envs help)'
;;
*)
_arguments '*: :_files'
Expand Down

0 comments on commit db328b0

Please sign in to comment.