Skip to content

Commit e3c3217

Browse files
committed
- Add support for private commands
1 parent a300f72 commit e3c3217

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lib/bashly/script/base.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ class Base
2323
long
2424
name
2525
parent_name
26+
private
2627
required
2728
short
2829
validate

lib/bashly/views/command/usage_commands.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
printf "<%= strings[:commands] %>\n"
44
% end
55
% maxlen = command_names.map(&:size).max
6-
% commands.each do |command|
6+
% commands.reject(&:private).each do |command|
77
% summary = command.summary
88
% summary = strings[:default_command_summary] % { summary: summary } if command.default
99
% if command.group

0 commit comments

Comments
 (0)