File tree Expand file tree Collapse file tree 5 files changed +47
-0
lines changed
fixtures/workspaces/completions-private Expand file tree Collapse file tree 5 files changed +47
-0
lines changed Original file line number Diff line number Diff line change 1+ + bundle exec bashly add completions_yaml
2+ created ./completions.yml
3+
4+ This file can be converted to a completions script using the completely gem.
5+
6+ + cat completions.yml
7+ ---
8+ private:
9+ - "--help"
10+ - "--version"
11+ - "-h"
12+ - "-v"
13+ - c
14+ - connect
15+ private connect:
16+ - "--help"
17+ - "-h"
18+ private c:
19+ - "--help"
20+ - "-h"
Original file line number Diff line number Diff line change 1+ completions.yml
Original file line number Diff line number Diff line change 1+ This fixture tests that private commands are not added to the generated
2+ completions scripts.
3+
4+ Reference issue: https://github.com/DannyBen/bashly/issues/388
Original file line number Diff line number Diff line change 1+ name : private
2+ help : Test private commands
3+
4+ commands :
5+ - name : connect
6+ alias : c
7+ help : Connect to the metaverse
8+ - name : connect-ftp
9+ help : Connect via FTP
10+ alias : cf
11+ private : true
12+ - name : connect-ssh
13+ help : Connect via SSH
14+ alias : cs
15+ private : true
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ rm -f ./completions.yml
4+
5+ set -x
6+ bundle exec bashly add completions_yaml
7+ cat completions.yml
You can’t perform that action at this time.
0 commit comments