test changing line endings
This commit is contained in:
parent
56dac7449a
commit
813b4dd1d0
166
testdata/expected-doc-full.man
vendored
166
testdata/expected-doc-full.man
vendored
@ -1,83 +1,83 @@
|
|||||||
.nh
|
.nh
|
||||||
.TH greet(8)
|
.TH greet(8)
|
||||||
|
|
||||||
.SH Harrison harrison@lolwut.com
|
.SH Harrison harrison@lolwut.com
|
||||||
\[la]mailto:harrison@lolwut.com\[ra]
|
\[la]mailto:harrison@lolwut.com\[ra]
|
||||||
Oliver Allen oliver@toyshop.com
|
Oliver Allen oliver@toyshop.com
|
||||||
\[la]mailto:oliver@toyshop.com\[ra]
|
\[la]mailto:oliver@toyshop.com\[ra]
|
||||||
|
|
||||||
.SH NAME
|
.SH NAME
|
||||||
.PP
|
.PP
|
||||||
greet \- Some app
|
greet \- Some app
|
||||||
|
|
||||||
|
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
.PP
|
.PP
|
||||||
greet
|
greet
|
||||||
|
|
||||||
.PP
|
.PP
|
||||||
.RS
|
.RS
|
||||||
|
|
||||||
.nf
|
.nf
|
||||||
[\-\-another\-flag|\-b]
|
[\-\-another\-flag|\-b]
|
||||||
[\-\-flag|\-\-fl|\-f]=[value]
|
[\-\-flag|\-\-fl|\-f]=[value]
|
||||||
[\-\-socket|\-s]=[value]
|
[\-\-socket|\-s]=[value]
|
||||||
|
|
||||||
.fi
|
.fi
|
||||||
.RE
|
.RE
|
||||||
|
|
||||||
|
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
.PP
|
.PP
|
||||||
app [first\_arg] [second\_arg]
|
app [first\_arg] [second\_arg]
|
||||||
|
|
||||||
.PP
|
.PP
|
||||||
\fBUsage\fP:
|
\fBUsage\fP:
|
||||||
|
|
||||||
.PP
|
.PP
|
||||||
.RS
|
.RS
|
||||||
|
|
||||||
.nf
|
.nf
|
||||||
greet [GLOBAL OPTIONS] command [COMMAND OPTIONS] [ARGUMENTS...]
|
greet [GLOBAL OPTIONS] command [COMMAND OPTIONS] [ARGUMENTS...]
|
||||||
|
|
||||||
.fi
|
.fi
|
||||||
.RE
|
.RE
|
||||||
|
|
||||||
|
|
||||||
.SH GLOBAL OPTIONS
|
.SH GLOBAL OPTIONS
|
||||||
.PP
|
.PP
|
||||||
\fB\-\-another\-flag, \-b\fP: another usage text
|
\fB\-\-another\-flag, \-b\fP: another usage text
|
||||||
|
|
||||||
.PP
|
.PP
|
||||||
\fB\-\-flag, \-\-fl, \-f\fP="":
|
\fB\-\-flag, \-\-fl, \-f\fP="":
|
||||||
|
|
||||||
.PP
|
.PP
|
||||||
\fB\-\-socket, \-s\fP="": some 'usage' text (default: value)
|
\fB\-\-socket, \-s\fP="": some 'usage' text (default: value)
|
||||||
|
|
||||||
|
|
||||||
.SH COMMANDS
|
.SH COMMANDS
|
||||||
.SH config, c
|
.SH config, c
|
||||||
.PP
|
.PP
|
||||||
another usage test
|
another usage test
|
||||||
|
|
||||||
.PP
|
.PP
|
||||||
\fB\-\-another\-flag, \-b\fP: another usage text
|
\fB\-\-another\-flag, \-b\fP: another usage text
|
||||||
|
|
||||||
.PP
|
.PP
|
||||||
\fB\-\-flag, \-\-fl, \-f\fP="":
|
\fB\-\-flag, \-\-fl, \-f\fP="":
|
||||||
|
|
||||||
.SS sub\-config, s, ss
|
.SS sub\-config, s, ss
|
||||||
.PP
|
.PP
|
||||||
another usage test
|
another usage test
|
||||||
|
|
||||||
.PP
|
.PP
|
||||||
\fB\-\-sub\-command\-flag, \-s\fP: some usage text
|
\fB\-\-sub\-command\-flag, \-s\fP: some usage text
|
||||||
|
|
||||||
.PP
|
.PP
|
||||||
\fB\-\-sub\-flag, \-\-sub\-fl, \-s\fP="":
|
\fB\-\-sub\-flag, \-\-sub\-fl, \-s\fP="":
|
||||||
|
|
||||||
.SH info, i, in
|
.SH info, i, in
|
||||||
.PP
|
.PP
|
||||||
retrieve generic information
|
retrieve generic information
|
||||||
|
|
||||||
.SH some\-command
|
.SH some\-command
|
||||||
|
126
testdata/expected-doc-full.md
vendored
126
testdata/expected-doc-full.md
vendored
@ -1,63 +1,63 @@
|
|||||||
% greet(8)
|
% greet(8)
|
||||||
|
|
||||||
% Harrison <harrison@lolwut.com>
|
% Harrison <harrison@lolwut.com>
|
||||||
% Oliver Allen <oliver@toyshop.com>
|
% Oliver Allen <oliver@toyshop.com>
|
||||||
|
|
||||||
# NAME
|
# NAME
|
||||||
|
|
||||||
greet - Some app
|
greet - Some app
|
||||||
|
|
||||||
# SYNOPSIS
|
# SYNOPSIS
|
||||||
|
|
||||||
greet
|
greet
|
||||||
|
|
||||||
```
|
```
|
||||||
[--another-flag|-b]
|
[--another-flag|-b]
|
||||||
[--flag|--fl|-f]=[value]
|
[--flag|--fl|-f]=[value]
|
||||||
[--socket|-s]=[value]
|
[--socket|-s]=[value]
|
||||||
```
|
```
|
||||||
|
|
||||||
# DESCRIPTION
|
# DESCRIPTION
|
||||||
|
|
||||||
app [first_arg] [second_arg]
|
app [first_arg] [second_arg]
|
||||||
|
|
||||||
**Usage**:
|
**Usage**:
|
||||||
|
|
||||||
```
|
```
|
||||||
greet [GLOBAL OPTIONS] command [COMMAND OPTIONS] [ARGUMENTS...]
|
greet [GLOBAL OPTIONS] command [COMMAND OPTIONS] [ARGUMENTS...]
|
||||||
```
|
```
|
||||||
|
|
||||||
# GLOBAL OPTIONS
|
# GLOBAL OPTIONS
|
||||||
|
|
||||||
**--another-flag, -b**: another usage text
|
**--another-flag, -b**: another usage text
|
||||||
|
|
||||||
**--flag, --fl, -f**="":
|
**--flag, --fl, -f**="":
|
||||||
|
|
||||||
**--socket, -s**="": some 'usage' text (default: value)
|
**--socket, -s**="": some 'usage' text (default: value)
|
||||||
|
|
||||||
|
|
||||||
# COMMANDS
|
# COMMANDS
|
||||||
|
|
||||||
## config, c
|
## config, c
|
||||||
|
|
||||||
another usage test
|
another usage test
|
||||||
|
|
||||||
**--another-flag, -b**: another usage text
|
**--another-flag, -b**: another usage text
|
||||||
|
|
||||||
**--flag, --fl, -f**="":
|
**--flag, --fl, -f**="":
|
||||||
|
|
||||||
### sub-config, s, ss
|
### sub-config, s, ss
|
||||||
|
|
||||||
another usage test
|
another usage test
|
||||||
|
|
||||||
**--sub-command-flag, -s**: some usage text
|
**--sub-command-flag, -s**: some usage text
|
||||||
|
|
||||||
**--sub-flag, --sub-fl, -s**="":
|
**--sub-flag, --sub-fl, -s**="":
|
||||||
|
|
||||||
## info, i, in
|
## info, i, in
|
||||||
|
|
||||||
retrieve generic information
|
retrieve generic information
|
||||||
|
|
||||||
## some-command
|
## some-command
|
||||||
|
|
||||||
|
|
||||||
|
122
testdata/expected-doc-no-authors.md
vendored
122
testdata/expected-doc-no-authors.md
vendored
@ -1,61 +1,61 @@
|
|||||||
% greet(8)
|
% greet(8)
|
||||||
|
|
||||||
|
|
||||||
# NAME
|
# NAME
|
||||||
|
|
||||||
greet - Some app
|
greet - Some app
|
||||||
|
|
||||||
# SYNOPSIS
|
# SYNOPSIS
|
||||||
|
|
||||||
greet
|
greet
|
||||||
|
|
||||||
```
|
```
|
||||||
[--another-flag|-b]
|
[--another-flag|-b]
|
||||||
[--flag|--fl|-f]=[value]
|
[--flag|--fl|-f]=[value]
|
||||||
[--socket|-s]=[value]
|
[--socket|-s]=[value]
|
||||||
```
|
```
|
||||||
|
|
||||||
# DESCRIPTION
|
# DESCRIPTION
|
||||||
|
|
||||||
app [first_arg] [second_arg]
|
app [first_arg] [second_arg]
|
||||||
|
|
||||||
**Usage**:
|
**Usage**:
|
||||||
|
|
||||||
```
|
```
|
||||||
greet [GLOBAL OPTIONS] command [COMMAND OPTIONS] [ARGUMENTS...]
|
greet [GLOBAL OPTIONS] command [COMMAND OPTIONS] [ARGUMENTS...]
|
||||||
```
|
```
|
||||||
|
|
||||||
# GLOBAL OPTIONS
|
# GLOBAL OPTIONS
|
||||||
|
|
||||||
**--another-flag, -b**: another usage text
|
**--another-flag, -b**: another usage text
|
||||||
|
|
||||||
**--flag, --fl, -f**="":
|
**--flag, --fl, -f**="":
|
||||||
|
|
||||||
**--socket, -s**="": some 'usage' text (default: value)
|
**--socket, -s**="": some 'usage' text (default: value)
|
||||||
|
|
||||||
|
|
||||||
# COMMANDS
|
# COMMANDS
|
||||||
|
|
||||||
## config, c
|
## config, c
|
||||||
|
|
||||||
another usage test
|
another usage test
|
||||||
|
|
||||||
**--another-flag, -b**: another usage text
|
**--another-flag, -b**: another usage text
|
||||||
|
|
||||||
**--flag, --fl, -f**="":
|
**--flag, --fl, -f**="":
|
||||||
|
|
||||||
### sub-config, s, ss
|
### sub-config, s, ss
|
||||||
|
|
||||||
another usage test
|
another usage test
|
||||||
|
|
||||||
**--sub-command-flag, -s**: some usage text
|
**--sub-command-flag, -s**: some usage text
|
||||||
|
|
||||||
**--sub-flag, --sub-fl, -s**="":
|
**--sub-flag, --sub-fl, -s**="":
|
||||||
|
|
||||||
## info, i, in
|
## info, i, in
|
||||||
|
|
||||||
retrieve generic information
|
retrieve generic information
|
||||||
|
|
||||||
## some-command
|
## some-command
|
||||||
|
|
||||||
|
|
||||||
|
74
testdata/expected-doc-no-commands.md
vendored
74
testdata/expected-doc-no-commands.md
vendored
@ -1,37 +1,37 @@
|
|||||||
% greet(8)
|
% greet(8)
|
||||||
|
|
||||||
% Harrison <harrison@lolwut.com>
|
% Harrison <harrison@lolwut.com>
|
||||||
% Oliver Allen <oliver@toyshop.com>
|
% Oliver Allen <oliver@toyshop.com>
|
||||||
|
|
||||||
# NAME
|
# NAME
|
||||||
|
|
||||||
greet - Some app
|
greet - Some app
|
||||||
|
|
||||||
# SYNOPSIS
|
# SYNOPSIS
|
||||||
|
|
||||||
greet
|
greet
|
||||||
|
|
||||||
```
|
```
|
||||||
[--another-flag|-b]
|
[--another-flag|-b]
|
||||||
[--flag|--fl|-f]=[value]
|
[--flag|--fl|-f]=[value]
|
||||||
[--socket|-s]=[value]
|
[--socket|-s]=[value]
|
||||||
```
|
```
|
||||||
|
|
||||||
# DESCRIPTION
|
# DESCRIPTION
|
||||||
|
|
||||||
app [first_arg] [second_arg]
|
app [first_arg] [second_arg]
|
||||||
|
|
||||||
**Usage**:
|
**Usage**:
|
||||||
|
|
||||||
```
|
```
|
||||||
greet [GLOBAL OPTIONS] command [COMMAND OPTIONS] [ARGUMENTS...]
|
greet [GLOBAL OPTIONS] command [COMMAND OPTIONS] [ARGUMENTS...]
|
||||||
```
|
```
|
||||||
|
|
||||||
# GLOBAL OPTIONS
|
# GLOBAL OPTIONS
|
||||||
|
|
||||||
**--another-flag, -b**: another usage text
|
**--another-flag, -b**: another usage text
|
||||||
|
|
||||||
**--flag, --fl, -f**="":
|
**--flag, --fl, -f**="":
|
||||||
|
|
||||||
**--socket, -s**="": some 'usage' text (default: value)
|
**--socket, -s**="": some 'usage' text (default: value)
|
||||||
|
|
||||||
|
96
testdata/expected-doc-no-flags.md
vendored
96
testdata/expected-doc-no-flags.md
vendored
@ -1,48 +1,48 @@
|
|||||||
% greet(8)
|
% greet(8)
|
||||||
|
|
||||||
% Harrison <harrison@lolwut.com>
|
% Harrison <harrison@lolwut.com>
|
||||||
% Oliver Allen <oliver@toyshop.com>
|
% Oliver Allen <oliver@toyshop.com>
|
||||||
|
|
||||||
# NAME
|
# NAME
|
||||||
|
|
||||||
greet - Some app
|
greet - Some app
|
||||||
|
|
||||||
# SYNOPSIS
|
# SYNOPSIS
|
||||||
|
|
||||||
greet
|
greet
|
||||||
|
|
||||||
# DESCRIPTION
|
# DESCRIPTION
|
||||||
|
|
||||||
app [first_arg] [second_arg]
|
app [first_arg] [second_arg]
|
||||||
|
|
||||||
**Usage**:
|
**Usage**:
|
||||||
|
|
||||||
```
|
```
|
||||||
greet [GLOBAL OPTIONS] command [COMMAND OPTIONS] [ARGUMENTS...]
|
greet [GLOBAL OPTIONS] command [COMMAND OPTIONS] [ARGUMENTS...]
|
||||||
```
|
```
|
||||||
|
|
||||||
# COMMANDS
|
# COMMANDS
|
||||||
|
|
||||||
## config, c
|
## config, c
|
||||||
|
|
||||||
another usage test
|
another usage test
|
||||||
|
|
||||||
**--another-flag, -b**: another usage text
|
**--another-flag, -b**: another usage text
|
||||||
|
|
||||||
**--flag, --fl, -f**="":
|
**--flag, --fl, -f**="":
|
||||||
|
|
||||||
### sub-config, s, ss
|
### sub-config, s, ss
|
||||||
|
|
||||||
another usage test
|
another usage test
|
||||||
|
|
||||||
**--sub-command-flag, -s**: some usage text
|
**--sub-command-flag, -s**: some usage text
|
||||||
|
|
||||||
**--sub-flag, --sub-fl, -s**="":
|
**--sub-flag, --sub-fl, -s**="":
|
||||||
|
|
||||||
## info, i, in
|
## info, i, in
|
||||||
|
|
||||||
retrieve generic information
|
retrieve generic information
|
||||||
|
|
||||||
## some-command
|
## some-command
|
||||||
|
|
||||||
|
|
||||||
|
56
testdata/expected-fish-full.fish
vendored
56
testdata/expected-fish-full.fish
vendored
@ -1,28 +1,28 @@
|
|||||||
# greet fish shell completion
|
# greet fish shell completion
|
||||||
|
|
||||||
function __fish_greet_no_subcommand --description 'Test if there has been any subcommand yet'
|
function __fish_greet_no_subcommand --description 'Test if there has been any subcommand yet'
|
||||||
for i in (commandline -opc)
|
for i in (commandline -opc)
|
||||||
if contains -- $i config c sub-config s ss info i in some-command
|
if contains -- $i config c sub-config s ss info i in some-command
|
||||||
return 1
|
return 1
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
return 0
|
return 0
|
||||||
end
|
end
|
||||||
|
|
||||||
complete -c greet -n '__fish_greet_no_subcommand' -l socket -s s -r -d 'some \'usage\' text'
|
complete -c greet -n '__fish_greet_no_subcommand' -l socket -s s -r -d 'some \'usage\' text'
|
||||||
complete -c greet -n '__fish_greet_no_subcommand' -f -l flag -s fl -s f -r
|
complete -c greet -n '__fish_greet_no_subcommand' -f -l flag -s fl -s f -r
|
||||||
complete -c greet -n '__fish_greet_no_subcommand' -f -l another-flag -s b -d 'another usage text'
|
complete -c greet -n '__fish_greet_no_subcommand' -f -l another-flag -s b -d 'another usage text'
|
||||||
complete -c greet -n '__fish_greet_no_subcommand' -f -l help -s h -d 'show help'
|
complete -c greet -n '__fish_greet_no_subcommand' -f -l help -s h -d 'show help'
|
||||||
complete -c greet -n '__fish_greet_no_subcommand' -f -l version -s v -d 'print the version'
|
complete -c greet -n '__fish_greet_no_subcommand' -f -l version -s v -d 'print the version'
|
||||||
complete -c greet -n '__fish_seen_subcommand_from config c' -f -l help -s h -d 'show help'
|
complete -c greet -n '__fish_seen_subcommand_from config c' -f -l help -s h -d 'show help'
|
||||||
complete -r -c greet -n '__fish_greet_no_subcommand' -a 'config c' -d 'another usage test'
|
complete -r -c greet -n '__fish_greet_no_subcommand' -a 'config c' -d 'another usage test'
|
||||||
complete -c greet -n '__fish_seen_subcommand_from config c' -l flag -s fl -s f -r
|
complete -c greet -n '__fish_seen_subcommand_from config c' -l flag -s fl -s f -r
|
||||||
complete -c greet -n '__fish_seen_subcommand_from config c' -f -l another-flag -s b -d 'another usage text'
|
complete -c greet -n '__fish_seen_subcommand_from config c' -f -l another-flag -s b -d 'another usage text'
|
||||||
complete -c greet -n '__fish_seen_subcommand_from sub-config s ss' -f -l help -s h -d 'show help'
|
complete -c greet -n '__fish_seen_subcommand_from sub-config s ss' -f -l help -s h -d 'show help'
|
||||||
complete -r -c greet -n '__fish_seen_subcommand_from config c' -a 'sub-config s ss' -d 'another usage test'
|
complete -r -c greet -n '__fish_seen_subcommand_from config c' -a 'sub-config s ss' -d 'another usage test'
|
||||||
complete -c greet -n '__fish_seen_subcommand_from sub-config s ss' -f -l sub-flag -s sub-fl -s s -r
|
complete -c greet -n '__fish_seen_subcommand_from sub-config s ss' -f -l sub-flag -s sub-fl -s s -r
|
||||||
complete -c greet -n '__fish_seen_subcommand_from sub-config s ss' -f -l sub-command-flag -s s -d 'some usage text'
|
complete -c greet -n '__fish_seen_subcommand_from sub-config s ss' -f -l sub-command-flag -s s -d 'some usage text'
|
||||||
complete -c greet -n '__fish_seen_subcommand_from info i in' -f -l help -s h -d 'show help'
|
complete -c greet -n '__fish_seen_subcommand_from info i in' -f -l help -s h -d 'show help'
|
||||||
complete -r -c greet -n '__fish_greet_no_subcommand' -a 'info i in' -d 'retrieve generic information'
|
complete -r -c greet -n '__fish_greet_no_subcommand' -a 'info i in' -d 'retrieve generic information'
|
||||||
complete -c greet -n '__fish_seen_subcommand_from some-command' -f -l help -s h -d 'show help'
|
complete -c greet -n '__fish_seen_subcommand_from some-command' -f -l help -s h -d 'show help'
|
||||||
complete -r -c greet -n '__fish_greet_no_subcommand' -a 'some-command'
|
complete -r -c greet -n '__fish_greet_no_subcommand' -a 'some-command'
|
||||||
|
Loading…
Reference in New Issue
Block a user