Skip to content

Commit cb05983

Browse files
committed
spec approvals
1 parent db23575 commit cb05983

File tree

9 files changed

+39
-4
lines changed

9 files changed

+39
-4
lines changed

examples/render-mandoc/docs/download.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.\" Automatically generated by Pandoc 3.2
22
.\"
3-
.TH "download" "1" "July 2024" "Version 0.1.0" "Sample application"
3+
.TH "download" "1" "August 2024" "Version 0.1.0" "Sample application"
44
.SH NAME
55
\f[B]download\f[R] \- Sample application
66
.SH SYNOPSIS

examples/render-mandoc/docs/download.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
% download(1) Version 0.1.0 | Sample application
22
% Lana Lang
3-
% July 2024
3+
% August 2024
44

55
NAME
66
==================================================

lib/bashly/script/flag.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
require 'shellwords'
2+
13
module Bashly
24
module Script
35
class Flag < Base

spec/approvals/cli/doc/full

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -680,6 +680,32 @@ flag.long
680680

681681
See https://bashly.dannyb.co/configuration/flag/#long
682682

683+
flag.needs
684+
685+
Specify that this flag needs one or more additional flags. Use the long name
686+
of these needed flags.
687+
688+
flags:
689+
- long: --add
690+
arg: alias
691+
692+
# When using --add, --command and --target must also be provided
693+
needs: [--command, --target]
694+
695+
- long: --command
696+
arg: command
697+
help: Command for the alias
698+
699+
# Note that this relationship is marked on both sides
700+
needs: [--add]
701+
702+
- long: --target
703+
arg: target
704+
help: Where to add the alias
705+
needs: [--add]
706+
707+
See https://bashly.dannyb.co/configuration/flag/#needs
708+
683709
flag.private
684710

685711
Specify that this flag should not be displayed in the help text.

spec/approvals/cli/doc/index

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ flag.conflicts
4242
flag.default
4343
flag.help
4444
flag.long
45+
flag.needs
4546
flag.private
4647
flag.repeatable
4748
flag.required

spec/approvals/examples/conflicts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,15 @@ Usage:
1414
Options:
1515
--cache
1616
Enable cache
17+
Conflicts: --no-cache
1718

1819
--no-cache
1920
Disable cache
21+
Conflicts: --cache, --fast
2022

2123
--fast
2224
Run faster
25+
Conflicts: --no-cache
2326

2427
--help, -h
2528
Show this help

spec/approvals/examples/needs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,16 @@ Usage:
1414
Options:
1515
--add, -a ALIAS
1616
Alias to add
17+
Needs: --command, --target
1718

1819
--command, -c COMMAND
1920
Command for the alias
21+
Needs: --add
2022

2123
--target, -t TARGET
2224
Where to add the alias
2325
Allowed: global, local
26+
Needs: --add
2427

2528
--help, -h
2629
Show this help

spec/approvals/examples/render-mandoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,4 @@ ISSUE TRACKER
4444
AUTHORS
4545
Lana Lang.
4646

47-
Version 0.1.0 July 2024 download(1)
47+
Version 0.1.0 August 2024 download(1)

spec/approvals/libraries/render/mandoc/render-1-download.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ EXAMPLES
2727

2828
download example.com ./output -f
2929

30-
Version 0.1.0 MONTH YEAR ... APPNAME
30+
Version 0.1.0 MONTH YEAR ... APPNAME

0 commit comments

Comments
 (0)