Skip to content
This repository was archived by the owner on Nov 8, 2024. It is now read-only.

Commit 2548d68

Browse files
author
Peter Grilli (Tu1ly)
authored
Merge pull request #172 from apiaryio/tu1ly/host-removal
chore: hide `--api-host` option
2 parents 5669860 + 4a71ae8 commit 2548d68

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ Usage:
7777
7878
Options:
7979
--api-name=API_NAME
80-
[--api-host=HOST] # Specify apiary host
8180
[--output=FILE] # Write API Description Document into specified file
8281
8382
Fetch API Description Document from API_NAME.apiary.io
@@ -95,7 +94,6 @@ Options:
9594
[--output=FILE] # Write generated HTML into specified file
9695
[--path=PATH] # Specify path to API Description Document. When given a directory, it will look for `apiary.apib` and `swagger.yaml` file
9796
[--json], [--no-json] # Specify that Swagger API Description Document is in json format. Document will be converted to yaml before processing
98-
[--api-host=HOST] # Specify apiary host
9997
[--server], [--no-server] # Start standalone web server on port 8080
10098
[--port=PORT] # Set port for --server option
10199
[--host=HOST] # Set host for --server option
@@ -115,7 +113,6 @@ Options:
115113
[--message=COMMIT_MESSAGE] # Publish with custom commit message
116114
[--path=PATH] # Specify path to API Description Document. When given a directory, it will look for `apiary.apib` and `swagger.yaml` file
117115
[--json], [--no-json] # Specify that Swagger API Description Document is in json format. Document will be converted to yaml before processing
118-
[--api-host=HOST] # Specify apiary host
119116
[--push], [--no-push] # Push API Description to the GitHub when API Project is associated with GitHub repository in Apiary
120117
# Default: true
121118
--api-name=API_NAME

lib/apiary/cli.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module Apiary
1010
class CLI < Thor
1111
desc 'fetch', 'Fetch API Description Document from API_NAME.apiary.io'
1212
method_option :api_name, type: :string, required: true
13-
method_option :api_host, type: :string, banner: 'HOST', desc: 'Specify apiary host'
13+
method_option :api_host, type: :string, banner: 'HOST', desc: 'Specify apiary host', hide: true
1414
method_option :output, type: :string, banner: 'FILE', desc: 'Write API Description Document into specified file'
1515

1616
def fetch
@@ -23,7 +23,7 @@ def fetch
2323
method_option :output, type: :string, banner: 'FILE', desc: 'Write generated HTML into specified file'
2424
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'
2525
method_option :json, type: :boolean, desc: 'Specify that Swagger API Description Document is in json format. Document will be converted to yaml before processing'
26-
method_option :api_host, type: :string, banner: 'HOST', desc: 'Specify apiary host'
26+
method_option :api_host, type: :string, banner: 'HOST', desc: 'Specify apiary host', hide: true
2727
method_option :server, type: :boolean, desc: 'Start standalone web server on port 8080'
2828
method_option :port, type: :numeric, banner: 'PORT', desc: 'Set port for --server option'
2929
method_option :host, type: :string, desc: 'Set host for --server option'
@@ -38,7 +38,7 @@ def preview
3838
method_option :message, type: :string, banner: 'COMMIT_MESSAGE', desc: 'Publish with custom commit message'
3939
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'
4040
method_option :json, type: :boolean, desc: 'Specify that Swagger API Description Document is in json format. Document will be converted to yaml before processing'
41-
method_option :api_host, type: :string, banner: 'HOST', desc: 'Specify apiary host'
41+
method_option :api_host, type: :string, banner: 'HOST', desc: 'Specify apiary host', hide: true
4242
method_option :push, type: :boolean, default: true, desc: 'Push API Description to the GitHub when API Project is associated with GitHub repository in Apiary'
4343
method_option :api_name, type: :string, required: true
4444

lib/apiary/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module Apiary
2-
VERSION = '0.11.0'.freeze
2+
VERSION = '0.11.1'.freeze
33
end

0 commit comments

Comments
 (0)