From 96e42fb4a3c6e7caa981b813e69b392932ed37cc Mon Sep 17 00:00:00 2001 From: Tully Date: Wed, 18 Apr 2018 14:36:21 +0200 Subject: [PATCH 1/2] chore: hide `--api-host` option --- README.md | 3 --- lib/apiary/cli.rb | 6 +++--- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 40152b9..2fb0dff 100644 --- a/README.md +++ b/README.md @@ -77,7 +77,6 @@ Usage: Options: --api-name=API_NAME - [--api-host=HOST] # Specify apiary host [--output=FILE] # Write API Description Document into specified file Fetch API Description Document from API_NAME.apiary.io @@ -95,7 +94,6 @@ Options: [--output=FILE] # Write generated HTML into specified file [--path=PATH] # Specify path to API Description Document. When given a directory, it will look for `apiary.apib` and `swagger.yaml` file [--json], [--no-json] # Specify that Swagger API Description Document is in json format. Document will be converted to yaml before processing - [--api-host=HOST] # Specify apiary host [--server], [--no-server] # Start standalone web server on port 8080 [--port=PORT] # Set port for --server option [--host=HOST] # Set host for --server option @@ -115,7 +113,6 @@ Options: [--message=COMMIT_MESSAGE] # Publish with custom commit message [--path=PATH] # Specify path to API Description Document. When given a directory, it will look for `apiary.apib` and `swagger.yaml` file [--json], [--no-json] # Specify that Swagger API Description Document is in json format. Document will be converted to yaml before processing - [--api-host=HOST] # Specify apiary host [--push], [--no-push] # Push API Description to the GitHub when API Project is associated with GitHub repository in Apiary # Default: true --api-name=API_NAME diff --git a/lib/apiary/cli.rb b/lib/apiary/cli.rb index 5baa1a6..81db577 100644 --- a/lib/apiary/cli.rb +++ b/lib/apiary/cli.rb @@ -10,7 +10,7 @@ module Apiary class CLI < Thor desc 'fetch', 'Fetch API Description Document from API_NAME.apiary.io' method_option :api_name, type: :string, required: true - method_option :api_host, type: :string, banner: 'HOST', desc: 'Specify apiary host' + method_option :api_host, type: :string, banner: 'HOST', desc: 'Specify apiary host', hide: true method_option :output, type: :string, banner: 'FILE', desc: 'Write API Description Document into specified file' def fetch @@ -23,7 +23,7 @@ def fetch method_option :output, type: :string, banner: 'FILE', desc: 'Write generated HTML into specified file' method_option :path, type: :string, desc: 'Specify path to API Description Document. When given a directory, it will look for `apiary.apib` and `swagger.yaml` file' method_option :json, type: :boolean, desc: 'Specify that Swagger API Description Document is in json format. Document will be converted to yaml before processing' - method_option :api_host, type: :string, banner: 'HOST', desc: 'Specify apiary host' + method_option :api_host, type: :string, banner: 'HOST', desc: 'Specify apiary host', hide: true method_option :server, type: :boolean, desc: 'Start standalone web server on port 8080' method_option :port, type: :numeric, banner: 'PORT', desc: 'Set port for --server option' method_option :host, type: :string, desc: 'Set host for --server option' @@ -38,7 +38,7 @@ def preview method_option :message, type: :string, banner: 'COMMIT_MESSAGE', desc: 'Publish with custom commit message' method_option :path, type: :string, desc: 'Specify path to API Description Document. When given a directory, it will look for `apiary.apib` and `swagger.yaml` file' method_option :json, type: :boolean, desc: 'Specify that Swagger API Description Document is in json format. Document will be converted to yaml before processing' - method_option :api_host, type: :string, banner: 'HOST', desc: 'Specify apiary host' + method_option :api_host, type: :string, banner: 'HOST', desc: 'Specify apiary host', hide: true method_option :push, type: :boolean, default: true, desc: 'Push API Description to the GitHub when API Project is associated with GitHub repository in Apiary' method_option :api_name, type: :string, required: true From 4a71ae8c1d6676cec3ed1f44135ea746f050ef58 Mon Sep 17 00:00:00 2001 From: Tully Date: Thu, 19 Apr 2018 09:53:24 +0200 Subject: [PATCH 2/2] chore: VERSION = '0.11.1' --- lib/apiary/version.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/apiary/version.rb b/lib/apiary/version.rb index 4cb7d1c..cfe5d74 100644 --- a/lib/apiary/version.rb +++ b/lib/apiary/version.rb @@ -1,3 +1,3 @@ module Apiary - VERSION = '0.11.0'.freeze + VERSION = '0.11.1'.freeze end