Skip to content

Commit 77ebba8

Browse files
committed
Colored help message
1 parent 3ddbc56 commit 77ebba8

File tree

3 files changed

+17
-12
lines changed

3 files changed

+17
-12
lines changed

Gemfile.lock

+7-5
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ GEM
2323
csv (3.3.2)
2424
docopt (0.6.1)
2525
json (2.9.1)
26-
language_server-protocol (3.17.0.3)
26+
language_server-protocol (3.17.0.4)
2727
minitest (5.25.4)
2828
paint (2.3.0)
2929
parallel (1.26.3)
@@ -33,19 +33,21 @@ GEM
3333
racc (1.8.1)
3434
rainbow (3.1.1)
3535
rake (13.2.1)
36-
rb_sys (0.9.108)
36+
rake-compiler-dock (1.9.1)
37+
rb_sys (0.9.110)
38+
rake-compiler-dock (= 1.9.1)
3739
regexp_parser (2.10.0)
38-
rubocop (1.71.0)
40+
rubocop (1.71.1)
3941
json (~> 2.3)
4042
language_server-protocol (>= 3.17.0)
4143
parallel (~> 1.10)
4244
parser (>= 3.3.0.2)
4345
rainbow (>= 2.2.2, < 4.0)
4446
regexp_parser (>= 2.9.3, < 3.0)
45-
rubocop-ast (>= 1.36.2, < 2.0)
47+
rubocop-ast (>= 1.38.0, < 2.0)
4648
ruby-progressbar (~> 1.7)
4749
unicode-display_width (>= 2.4.0, < 4.0)
48-
rubocop-ast (1.37.0)
50+
rubocop-ast (1.38.0)
4951
parser (>= 3.3.1.0)
5052
ruby-progressbar (1.13.0)
5153
unicode-display_width (3.1.4)

bin/pass-station

+7-7
Original file line numberDiff line numberDiff line change
@@ -10,30 +10,30 @@ require 'docopt'
1010
require 'paint'
1111

1212
doc = <<~DOCOPT
13-
Pass Station v#{PassStation::VERSION}
13+
#{Paint['Pass Station', :bold, '#2db453']} v#{Paint[PassStation::VERSION, :bold]}
1414
15-
Usage:
15+
#{Paint['Usage:', '#2db453']}
1616
pass-station list [--sort <col> --output <format>] [--source <id> --debug]
1717
pass-station search <term> [--field <col> --sort <col> --sensitive --output <format>] [--source <id> --no-color --debug]
1818
pass-station update ([--force] <path> | --check) [--debug]
1919
pass-station -h | --help
2020
pass-station --version
2121
22-
List options: list all default credentials
22+
#{Paint['List options:', '#2db453']} #{Paint['list all default credentials', :underline]}
2323
24-
Output options: can be used with list and search commands
24+
#{Paint['Output options:', '#2db453']} #{Paint['can be used with list and search commands', :underline]}
2525
-o <format>, --output <format> Output format: JSON, CSV, YAML, table, pretty-table [default: pretty-table]
2626
-s <col>, --sort <col> Sort by column (see documentation, columns depends on the database source)
2727
28-
Search options:
28+
#{Paint['Search options:', '#2db453']} #{Paint['search for default credentials', :underline]}
2929
--field <col> Search in column: column name (see documentation, columns depends on the database source) or all
3030
--sensitive Search is case sensitive (case insensitive by default)
3131
32-
Update options: update the password database (replace Pass Station DB with upstream DB, use with care)
32+
#{Paint['Update options:', '#2db453']} #{Paint['update the password database (replace Pass Station DB with upstream DB, use with care)', :underline]}
3333
-f, --force Bypass hash checking
3434
-c, --check Check for possible update
3535
36-
Other options:
36+
#{Paint['Other options:', '#2db453']}
3737
--source <id> Credentials source database: 1 (Default Credentials Cheat Sheet), 2 (Many passwords) [default: 1]
3838
--no-color Disable colorized output
3939
--debug Display arguments

docs/CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,12 @@
22

33
- Credentials:
44
- Update database (new entries) to reflect upstream
5+
- Fanciness:
6+
- Colored help message
57
- Chore:
68
- Add support for Ruby 3.2, 3.3, 3.4
79
- **Breaking change**: Drop support for Ruby 2.6, 2.7, 3.0
10+
- Update dependencies
811

912
## [1.4.0]
1013

0 commit comments

Comments
 (0)