Skip to content

Commit

Permalink
Fix running commands list without style flag
Browse files Browse the repository at this point in the history
- FIXED: Error running `commands list` without `--style` flag
  • Loading branch information
ttscoff committed Jan 1, 2023
1 parent 3d4a541 commit 642a6cc
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 28 deletions.
26 changes: 3 additions & 23 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,31 +1,15 @@
### 2.1.74
### 2.1.75

2023-01-01 07:19

### 2.1.73

2023-01-01 07:10
2023-01-01 07:30

#### FIXED

- Comparison of Doing::Section to string

### 2.1.72

2023-01-01 06:30
- Fixing gem release script

#### NEW

- `doing commands list [QUERY]` command to display enabled and disabled commands

#### IMPROVED

- Add --since as alias for --back on again, done, meanwhile and now

#### FIXED

- Comparison of Doing::Section to string

### 2.1.69

2022-08-28 14:37
Expand All @@ -34,10 +18,6 @@

- Add --since as alias for --back on again, done, meanwhile and now

#### FIXED

- Comparison of Doing::Section to string

### 2.1.68

2022-08-08 12:19
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
doing (2.1.74)
doing (2.1.75)
chronic (~> 0.10, >= 0.10.2)
deep_merge (~> 1.2, >= 1.2.1)
gli (~> 2.20, >= 2.20.1)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ _If you're one of the rare people like me who find this useful, feel free to

<!--README-->

The current version of `doing` is <!--VER-->2.1.67<!--END VER-->.
The current version of `doing` is <!--VER-->2.1.74<!--END VER-->.

Find all of the documentation in the [doing wiki][wiki].

Expand Down
5 changes: 3 additions & 2 deletions bin/commands/commands.rb
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,11 @@ def add_command(args)
list.switch %i[d disabled]

list.action do |_global, options, args|
style = options[:style] ? options[:style].normalize_list_style : :space
if options[:disabled]
cmd.list_disabled_commands(args, style: options[:style].normalize_list_style)
cmd.list_disabled_commands(args, style: style)
else
cmd.list_commands(args, style: options[:style].normalize_list_style)
cmd.list_commands(args, style: style)
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/doing/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Doing
VERSION = '2.1.74'
VERSION = '2.1.75'
end

0 comments on commit 642a6cc

Please sign in to comment.