You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/bundler/cli.rb
+16-16Lines changed: 16 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -520,11 +520,11 @@ def licenses
520
520
Viz requires the ruby-graphviz gem (and its dependencies).
521
521
The associated gems must also be installed via 'bundle install'.
522
522
D
523
-
method_option:file,type: :string,default: "gem_graph",aliases: "-f",desc: "The name to use for the generated file. see format option"
524
-
method_option:format,type: :string,default: "png",aliases: "-F",desc: "This is output format option. Supported format is png, jpg, svg, dot ..."
525
-
method_option:requirements,type: :boolean,default: false,aliases: "-R",desc: "Set to show the version of each required dependency."
526
-
method_option:version,type: :boolean,default: false,aliases: "-v",desc: "Set to show each gem version."
527
-
method_option:without,type: :array,default: [],aliases: "-W",banner: "GROUP[ GROUP...]",desc: "Exclude gems that are part of the specified named group."
523
+
method_option:file,type: :string,default: "gem_graph",aliases: "-f",banner: "The name to use for the generated file. see format option"
524
+
method_option:format,type: :string,default: "png",aliases: "-F",banner: "This is output format option. Supported format is png, jpg, svg, dot ..."
525
+
method_option:requirements,type: :boolean,default: false,aliases: "-R",banner: "Set to show the version of each required dependency."
526
+
method_option:version,type: :boolean,default: false,aliases: "-v",banner: "Set to show each gem version."
527
+
method_option:without,type: :array,default: [],aliases: "-W",banner: "Exclude gems that are part of the specified named group."
528
528
defviz
529
529
SharedHelpers.major_deprecation2,"The `viz` command has been renamed to `graph` and moved to a plugin. See https://github.com/rubygems/bundler-graph"
530
530
require_relative"cli/viz"
@@ -533,19 +533,19 @@ def viz
533
533
end
534
534
535
535
desc"gem NAME [OPTIONS]","Creates a skeleton for creating a rubygem"
536
-
method_option:exe,type: :boolean,default: false,aliases: ["--bin","-b"],desc: "Generate a binary executable for your library."
537
-
method_option:coc,type: :boolean,desc: "Generate a code of conduct file. Set a default with `bundle config set --global gem.coc true`."
538
-
method_option:edit,type: :string,aliases: "-e",required: false,banner: "EDITOR",lazy_default: [ENV["BUNDLER_EDITOR"],ENV["VISUAL"],ENV["EDITOR"]].find{|e| !e.nil? && !e.empty?},desc: "Open generated gemspec in the specified editor (defaults to $EDITOR or $BUNDLER_EDITOR)"
539
-
method_option:ext,type: :string,desc: "Generate the boilerplate for C extension code.",enum: EXTENSIONS
540
-
method_option:git,type: :boolean,default: true,desc: "Initialize a git repo inside your library."
541
-
method_option:mit,type: :boolean,desc: "Generate an MIT license file. Set a default with `bundle config set --global gem.mit true`."
542
-
method_option:rubocop,type: :boolean,desc: "Add rubocop to the generated Rakefile and gemspec. Set a default with `bundle config set --global gem.rubocop true`."
543
-
method_option:changelog,type: :boolean,desc: "Generate changelog file. Set a default with `bundle config set --global gem.changelog true`."
536
+
method_option:exe,type: :boolean,default: false,aliases: ["--bin","-b"],banner: "Generate a binary executable for your library."
537
+
method_option:coc,type: :boolean,banner: "Generate a code of conduct file. Set a default with `bundle config set --global gem.coc true`."
538
+
method_option:edit,type: :string,aliases: "-e",required: false,lazy_default: [ENV["BUNDLER_EDITOR"],ENV["VISUAL"],ENV["EDITOR"]].find{|e| !e.nil? && !e.empty?},banner: "Open generated gemspec in the specified editor (defaults to $EDITOR or $BUNDLER_EDITOR)"
539
+
method_option:ext,type: :string,banner: "Generate the boilerplate for C extension code.",enum: EXTENSIONS
540
+
method_option:git,type: :boolean,default: true,banner: "Initialize a git repo inside your library."
541
+
method_option:mit,type: :boolean,banner: "Generate an MIT license file. Set a default with `bundle config set --global gem.mit true`."
542
+
method_option:rubocop,type: :boolean,banner: "Add rubocop to the generated Rakefile and gemspec. Set a default with `bundle config set --global gem.rubocop true`."
543
+
method_option:changelog,type: :boolean,banner: "Generate changelog file. Set a default with `bundle config set --global gem.changelog true`."
544
544
method_option:test,type: :string,lazy_default: Bundler.settings["gem.test"] || "",aliases: "-t",banner: "Use the specified test framework for your library",enum: %w[rspecminitesttest-unit],desc: "Generate a test directory for your library, either rspec, minitest or test-unit. Set a default with `bundle config set --global gem.test (rspec|minitest|test-unit)`."
545
-
method_option:ci,type: :string,lazy_default: Bundler.settings["gem.ci"] || "",enum: %w[githubgitlabcircle],desc: "Generate CI configuration, either GitHub Actions, GitLab CI or CircleCI. Set a default with `bundle config set --global gem.ci (github|gitlab|circle)`"
546
-
method_option:linter,type: :string,lazy_default: Bundler.settings["gem.linter"] || "",enum: %w[rubocopstandard],desc: "Add a linter and code formatter, either RuboCop or Standard. Set a default with `bundle config set --global gem.linter (rubocop|standard)`"
545
+
method_option:ci,type: :string,lazy_default: Bundler.settings["gem.ci"] || "",enum: %w[githubgitlabcircle],banner: "Generate CI configuration, either GitHub Actions, GitLab CI or CircleCI. Set a default with `bundle config set --global gem.ci (github|gitlab|circle)`"
546
+
method_option:linter,type: :string,lazy_default: Bundler.settings["gem.linter"] || "",enum: %w[rubocopstandard],banner: "Add a linter and code formatter, either RuboCop or Standard. Set a default with `bundle config set --global gem.linter (rubocop|standard)`"
547
547
method_option:github_username,type: :string,default: Bundler.settings["gem.github_username"],banner: "Set your username on GitHub",desc: "Fill in GitHub username on README so that you don't have to do it manually. Set a default with `bundle config set --global gem.github_username <your_username>`."
548
-
method_option:bundle,type: :boolean,default: Bundler.settings["gem.bundle"],desc: "Automatically run `bundle install` after creation. Set a default with `bundle config set --global gem.bundle true`"
548
+
method_option:bundle,type: :boolean,default: Bundler.settings["gem.bundle"],banner: "Automatically run `bundle install` after creation. Set a default with `bundle config set --global gem.bundle true`"
0 commit comments