Skip to content

Commit e8431ba

Browse files
committed
doc: Plural 'bars' instead of singular 'bar'
1 parent 4c6ab71 commit e8431ba

File tree

8 files changed

+10
-10
lines changed

8 files changed

+10
-10
lines changed

exports/completion.elv

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ edit:completion:arg-completer[pdu] = [@words]{
2424
cand --json-input 'Read JSON data from stdin'
2525
cand --json-output 'Print JSON data instead of an ASCII chart'
2626
cand --top-down 'Print the tree top-down instead of bottom-up'
27-
cand --align-left 'Fill the bar from left to right'
27+
cand --align-left 'Fill the bars from left to right'
2828
cand --no-sort 'Preserve order of entries'
2929
cand --silent-errors 'Prevent filesystem error messages from appearing in stderr'
3030
cand --progress 'Report progress being made at the expense of performance'

exports/completion.fish

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ complete -c pdu -n "__fish_use_subcommand" -l min-ratio -d 'Minimal size proport
77
complete -c pdu -n "__fish_use_subcommand" -l json-input -d 'Read JSON data from stdin'
88
complete -c pdu -n "__fish_use_subcommand" -l json-output -d 'Print JSON data instead of an ASCII chart'
99
complete -c pdu -n "__fish_use_subcommand" -l top-down -d 'Print the tree top-down instead of bottom-up'
10-
complete -c pdu -n "__fish_use_subcommand" -l align-left -d 'Fill the bar from left to right'
10+
complete -c pdu -n "__fish_use_subcommand" -l align-left -d 'Fill the bars from left to right'
1111
complete -c pdu -n "__fish_use_subcommand" -l no-sort -d 'Preserve order of entries'
1212
complete -c pdu -n "__fish_use_subcommand" -l silent-errors -d 'Prevent filesystem error messages from appearing in stderr'
1313
complete -c pdu -n "__fish_use_subcommand" -l progress -d 'Report progress being made at the expense of performance'

exports/completion.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Register-ArgumentCompleter -Native -CommandName 'pdu' -ScriptBlock {
2929
[CompletionResult]::new('--json-input', 'json-input', [CompletionResultType]::ParameterName, 'Read JSON data from stdin')
3030
[CompletionResult]::new('--json-output', 'json-output', [CompletionResultType]::ParameterName, 'Print JSON data instead of an ASCII chart')
3131
[CompletionResult]::new('--top-down', 'top-down', [CompletionResultType]::ParameterName, 'Print the tree top-down instead of bottom-up')
32-
[CompletionResult]::new('--align-left', 'align-left', [CompletionResultType]::ParameterName, 'Fill the bar from left to right')
32+
[CompletionResult]::new('--align-left', 'align-left', [CompletionResultType]::ParameterName, 'Fill the bars from left to right')
3333
[CompletionResult]::new('--no-sort', 'no-sort', [CompletionResultType]::ParameterName, 'Preserve order of entries')
3434
[CompletionResult]::new('--silent-errors', 'silent-errors', [CompletionResultType]::ParameterName, 'Prevent filesystem error messages from appearing in stderr')
3535
[CompletionResult]::new('--progress', 'progress', [CompletionResultType]::ParameterName, 'Report progress being made at the expense of performance')

exports/completion.zsh

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ _pdu() {
2424
'(--quantity)--json-input[Read JSON data from stdin]' \
2525
'--json-output[Print JSON data instead of an ASCII chart]' \
2626
'--top-down[Print the tree top-down instead of bottom-up]' \
27-
'--align-left[Fill the bar from left to right]' \
27+
'--align-left[Fill the bars from left to right]' \
2828
'--no-sort[Preserve order of entries]' \
2929
'--silent-errors[Prevent filesystem error messages from appearing in stderr]' \
3030
'--progress[Report progress being made at the expense of performance]' \

src/app/sub.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ where
2929
pub bytes_format: Data::DisplayFormat,
3030
/// The direction of the visualization.
3131
pub direction: Direction,
32-
/// The alignment of the bar.
32+
/// The alignment of the bars.
3333
pub bar_alignment: BarAlignment,
3434
/// Distribution and number of characters/blocks can be placed in a line.
3535
pub column_width_distribution: ColumnWidthDistribution,

src/args.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ pub struct Args {
7777
#[structopt(long)]
7878
pub top_down: bool,
7979

80-
/// Fill the bar from left to right.
80+
/// Fill the bars from left to right.
8181
#[structopt(long)]
8282
pub align_left: bool,
8383

src/visualizer.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ where
5555
pub bytes_format: Data::DisplayFormat,
5656
/// The direction of the visualization of the tree.
5757
pub direction: Direction,
58-
/// The alignment of the bar.
58+
/// The alignment of the bars.
5959
pub bar_alignment: BarAlignment,
6060
/// Distribution and total number of characters/blocks can be placed in a line.
6161
pub column_width_distribution: ColumnWidthDistribution,

src/visualizer/bar_alignment.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
/// The alignment of the bar.
1+
/// The alignment of the bars.
22
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
33
pub enum BarAlignment {
4-
/// Fill the bar from left to right.
4+
/// Fill the bars from left to right.
55
Left,
6-
/// Fill the bar from right to left.
6+
/// Fill the bars from right to left.
77
Right,
88
}
99

0 commit comments

Comments
 (0)