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

Commit

Permalink
Merge pull request #172 from apiaryio/tu1ly/host-removal
Browse files Browse the repository at this point in the history
chore: hide `--api-host` option
  • Loading branch information
Peter Grilli (Tu1ly) authored Apr 19, 2018
2 parents 5669860 + 4a71ae8 commit 2548d68
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
6 changes: 3 additions & 3 deletions lib/apiary/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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'
Expand All @@ -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

Expand Down
2 changes: 1 addition & 1 deletion lib/apiary/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Apiary
VERSION = '0.11.0'.freeze
VERSION = '0.11.1'.freeze
end

0 comments on commit 2548d68

Please sign in to comment.