ace-task 0.36.7 → 0.37.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 81fe627b41cbd7329b370ce01458343eb34bb6dd3033772750976ab7fdbf604e
4
- data.tar.gz: 55d0dd5f43f21cd4b9f83984d703905d1e66c22869fe6791a430ad1d782fdeb8
3
+ metadata.gz: 0c904888ee87cacc7e50943b71c57903e2b4b86e100fd430a39888268ae52c10
4
+ data.tar.gz: b7a750de5413603f17f69aba61bb18cef0c522167b69fcee88dbdfd8052feea1
5
5
  SHA512:
6
- metadata.gz: 5683574d4b854a0aeabd3e1b22e32ab7ad2f74f4bca594316c860954d7bce927da95e9142f804c0bf9078f263f69a6960cdda009fe500e545dbee6d7d78316fc
7
- data.tar.gz: b28b4bec231fe6d4461a2673d3d4cfcb753aaff3e026ca83cb26b2ed053f906ba1382f174c7e09ad8d92911219626d5445b4507f2de9b356515c14d4341ea804
6
+ metadata.gz: e0d87b222c10a7b7253771f5c8c01f56d9326638cb0a56878d3d768d8988cb63758551cc24800f82f68516e25b36d87ff7a8a43d4fcef7e674027178b1b61c70
7
+ data.tar.gz: e0e3b6b034578fb56b13acf58a6cc4e412bf941077f06bcc492fb87cfee059524ac0cfc3bbb791c68c7af299ff20e685eeb4571787ab2fe4541e668aff84db59
data/CHANGELOG.md CHANGED
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.37.0] - 2026-06-30
11
+
12
+ ### Added
13
+
14
+ - Accepted `--title` as an alternate title input for `ace-task create`, with clear conflict handling when both title forms are provided.
15
+
10
16
  ## [0.36.7] - 2026-04-25
11
17
 
12
18
  ### Changed
@@ -18,6 +18,7 @@ module Ace
18
18
 
19
19
  example [
20
20
  '"Fix login bug" # Create task with title',
21
+ '--title "Fix login bug" # Create task with title flag',
21
22
  '"Fix auth" --priority high --tags auth,security # With priority and tags',
22
23
  '"Setup DB" --child-of q7w # Create as subtask',
23
24
  '"Track issue" --github-issue 276 # Link GitHub issue',
@@ -26,8 +27,9 @@ module Ace
26
27
  '"Preview only" --dry-run # Show what would be created'
27
28
  ]
28
29
 
29
- argument :title, required: true, desc: "Task title"
30
+ argument :title_arg, required: false, desc: "Task title"
30
31
 
32
+ option :title, type: :string, desc: "Task title (alternative to positional TITLE)"
31
33
  option :priority, type: :string, aliases: %w[-p], desc: "Priority (critical, high, medium, low)"
32
34
  option :tags, type: :string, aliases: %w[-T], desc: "Tags (comma-separated)"
33
35
  option :status, type: :string, aliases: %w[-s], desc: "Initial status (draft, pending, blocked, ...)"
@@ -43,7 +45,8 @@ module Ace
43
45
  option :verbose, type: :boolean, aliases: %w[-v], desc: "Show verbose output"
44
46
  option :debug, type: :boolean, aliases: %w[-d], desc: "Show debug output"
45
47
 
46
- def call(title:, **options)
48
+ def call(title_arg: nil, **options)
49
+ title = resolve_title(title_arg, options[:title])
47
50
  dry_run = options[:"dry-run"]
48
51
  priority = options[:priority]
49
52
  tags_str = options[:tags]
@@ -127,6 +130,24 @@ module Ace
127
130
 
128
131
  private
129
132
 
133
+ def resolve_title(positional_title, flag_title)
134
+ positional_present = present_string?(positional_title)
135
+ flag_present = present_string?(flag_title)
136
+
137
+ if positional_present && flag_present
138
+ raise Ace::Support::Cli::Error.new("Choose either positional TITLE or --title, not both")
139
+ end
140
+
141
+ return positional_title if positional_present
142
+ return flag_title if flag_present
143
+
144
+ raise Ace::Support::Cli::Error.new("Title required: provide positional TITLE or --title")
145
+ end
146
+
147
+ def present_string?(value)
148
+ !value.nil? && !value.to_s.strip.empty?
149
+ end
150
+
130
151
  def parse_github_issue(raw_values)
131
152
  values = Array(raw_values).flatten.compact
132
153
  return nil if values.empty?
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Ace
4
4
  module Task
5
- VERSION = '0.36.7'
5
+ VERSION = '0.37.0'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ace-task
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.36.7
4
+ version: 0.37.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michal Czyz
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2026-04-26 00:00:00.000000000 Z
10
+ date: 2026-06-30 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: ace-support-core