mirror of
https://github.com/ruby/ruby.git
synced 2025-08-24 05:25:34 +02:00
[rubygems/rubygems] Add missing man pages for bundle env
and bundle licenses
commands
6e1a515d58
This commit is contained in:
parent
d91ca85b97
commit
b37ab8c123
6 changed files with 49 additions and 7 deletions
9
lib/bundler/man/bundle-env.1
Normal file
9
lib/bundler/man/bundle-env.1
Normal file
|
@ -0,0 +1,9 @@
|
|||
.\" generated with nRonn/v0.11.1
|
||||
.\" https://github.com/n-ronn/nronn/tree/0.11.1
|
||||
.TH "BUNDLE\-ENV" "1" "December 2024" ""
|
||||
.SH "NAME"
|
||||
\fBbundle\-env\fR \- Print information about the environment Bundler is running under
|
||||
.SH "SYNOPSIS"
|
||||
\fBbundle env\fR
|
||||
.SH "DESCRIPTION"
|
||||
Prints information about the environment Bundler is running under\.
|
10
lib/bundler/man/bundle-env.1.ronn
Normal file
10
lib/bundler/man/bundle-env.1.ronn
Normal file
|
@ -0,0 +1,10 @@
|
|||
bundle-env(1) -- Print information about the environment Bundler is running under
|
||||
=================================================================================
|
||||
|
||||
## SYNOPSIS
|
||||
|
||||
`bundle env`
|
||||
|
||||
## DESCRIPTION
|
||||
|
||||
Prints information about the environment Bundler is running under.
|
9
lib/bundler/man/bundle-licenses.1
Normal file
9
lib/bundler/man/bundle-licenses.1
Normal file
|
@ -0,0 +1,9 @@
|
|||
.\" generated with nRonn/v0.11.1
|
||||
.\" https://github.com/n-ronn/nronn/tree/0.11.1
|
||||
.TH "BUNDLE\-LICENSES" "1" "December 2024" ""
|
||||
.SH "NAME"
|
||||
\fBbundle\-licenses\fR \- Print the license of all gems in the bundle
|
||||
.SH "SYNOPSIS"
|
||||
\fBbundle licenses\fR
|
||||
.SH "DESCRIPTION"
|
||||
Prints the license of all gems in the bundle\.
|
10
lib/bundler/man/bundle-licenses.1.ronn
Normal file
10
lib/bundler/man/bundle-licenses.1.ronn
Normal file
|
@ -0,0 +1,10 @@
|
|||
bundle-licenses(1) -- Print the license of all gems in the bundle
|
||||
=================================================================
|
||||
|
||||
## SYNOPSIS
|
||||
|
||||
`bundle licenses`
|
||||
|
||||
## DESCRIPTION
|
||||
|
||||
Prints the license of all gems in the bundle.
|
|
@ -8,6 +8,7 @@ bundle-clean(1) bundle-clean.1
|
|||
bundle-config(1) bundle-config.1
|
||||
bundle-console(1) bundle-console.1
|
||||
bundle-doctor(1) bundle-doctor.1
|
||||
bundle-env(1) bundle-env.1
|
||||
bundle-exec(1) bundle-exec.1
|
||||
bundle-fund(1) bundle-fund.1
|
||||
bundle-gem(1) bundle-gem.1
|
||||
|
@ -17,6 +18,7 @@ bundle-init(1) bundle-init.1
|
|||
bundle-inject(1) bundle-inject.1
|
||||
bundle-install(1) bundle-install.1
|
||||
bundle-issue(1) bundle-issue.1
|
||||
bundle-licenses(1) bundle-licenses.1
|
||||
bundle-list(1) bundle-list.1
|
||||
bundle-lock(1) bundle-lock.1
|
||||
bundle-open(1) bundle-open.1
|
||||
|
|
|
@ -2,14 +2,16 @@
|
|||
|
||||
RSpec.describe "bundle commands" do
|
||||
it "expects all commands to have a man page" do
|
||||
command_names =
|
||||
Dir["#{source_root}/lib/bundler/cli/*.rb"].
|
||||
grep_v(/common.rb/).
|
||||
map {|file_path| File.basename(file_path, ".rb") }
|
||||
Bundler::CLI.all_commands.each_key do |command_name|
|
||||
next if command_name == "cli_help"
|
||||
|
||||
command_names.each do |command_name|
|
||||
man_page = source_root.join("lib/bundler/man/bundle-#{command_name}.1.ronn")
|
||||
expect(man_page).to exist
|
||||
expect(man_page(command_name)).to exist
|
||||
end
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def man_page(command_name)
|
||||
source_root.join("lib/bundler/man/bundle-#{command_name}.1.ronn")
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue