@md2do/cli 0.3.1 → 0.5.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.
Files changed (41) hide show
  1. package/CHANGELOG.md +55 -0
  2. package/README.md +25 -0
  3. package/coverage/coverage-final.json +5 -4
  4. package/coverage/index.html +11 -11
  5. package/coverage/lcov-report/index.html +11 -11
  6. package/coverage/lcov-report/src/cli.ts.html +10 -4
  7. package/coverage/lcov-report/src/commands/config.ts.html +2269 -0
  8. package/coverage/lcov-report/src/commands/index.html +24 -9
  9. package/coverage/lcov-report/src/commands/index.ts.html +7 -4
  10. package/coverage/lcov-report/src/commands/list.ts.html +103 -22
  11. package/coverage/lcov-report/src/commands/stats.ts.html +1 -1
  12. package/coverage/lcov-report/src/commands/todoist.ts.html +1 -1
  13. package/coverage/lcov-report/src/formatters/index.html +1 -1
  14. package/coverage/lcov-report/src/formatters/json.ts.html +1 -1
  15. package/coverage/lcov-report/src/formatters/pretty.ts.html +1 -1
  16. package/coverage/lcov-report/src/index.html +7 -7
  17. package/coverage/lcov-report/src/index.ts.html +1 -1
  18. package/coverage/lcov-report/src/scanner.ts.html +87 -6
  19. package/coverage/lcov.info +817 -20
  20. package/coverage/src/cli.ts.html +10 -4
  21. package/coverage/src/commands/config.ts.html +2269 -0
  22. package/coverage/src/commands/index.html +24 -9
  23. package/coverage/src/commands/index.ts.html +7 -4
  24. package/coverage/src/commands/list.ts.html +103 -22
  25. package/coverage/src/commands/stats.ts.html +1 -1
  26. package/coverage/src/commands/todoist.ts.html +1 -1
  27. package/coverage/src/formatters/index.html +1 -1
  28. package/coverage/src/formatters/json.ts.html +1 -1
  29. package/coverage/src/formatters/pretty.ts.html +1 -1
  30. package/coverage/src/index.html +7 -7
  31. package/coverage/src/index.ts.html +1 -1
  32. package/coverage/src/scanner.ts.html +87 -6
  33. package/dist/cli.js +488 -12
  34. package/dist/index.d.ts +6 -1
  35. package/dist/index.js +483 -6
  36. package/package.json +7 -4
  37. package/src/cli.ts +2 -0
  38. package/src/commands/config.ts +731 -0
  39. package/src/commands/index.ts +1 -0
  40. package/src/commands/list.ts +16 -5
  41. package/src/scanner.ts +23 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,60 @@
1
1
  # @md2do/cli
2
2
 
3
+ ## 0.5.0
4
+
5
+ ### Minor Changes
6
+
7
+ - Add interactive config command for easy setup and configuration management
8
+
9
+ New `config` command provides interactive and programmatic configuration:
10
+ - `config init` - Interactive setup wizard with friendly prompts
11
+ - `config set/get` - Programmatically manage individual config values
12
+ - `config list` - View merged configuration with optional source display
13
+ - `config edit` - Open config file in $EDITOR
14
+ - `config validate` - Validate configuration against schema
15
+
16
+ Features:
17
+ - Interactive wizard for first-time setup (workday hours, assignee, output preferences, warnings)
18
+ - Non-interactive mode with CLI flags for automation
19
+ - Global flag support for all subcommands
20
+ - Multi-format support (JSON, YAML, JS)
21
+ - Automatic config validation
22
+
23
+ This makes initial setup much easier - just run `md2do config init`!
24
+
25
+ ## 0.4.0
26
+
27
+ ### Minor Changes
28
+
29
+ - 8e0f80a: Add time support to due dates with workday configuration
30
+
31
+ **New Features:**
32
+ - Support optional time component in due dates: `[due: 2026-02-06 17:00]`
33
+ - Parse both 24-hour format times (H:MM and HH:MM)
34
+ - Added `parseTime()` utility for time validation
35
+ - New workday config schema with `startTime`, `endTime`, and `defaultDueTime`
36
+ - When no time specified in due date, applies default from config (defaults to 17:00 end of workday)
37
+ - Prevents "due 8 hours ago" issues for dates without explicit times
38
+
39
+ **Configuration:**
40
+
41
+ ```json
42
+ {
43
+ "workday": {
44
+ "startTime": "08:00",
45
+ "endTime": "17:00",
46
+ "defaultDueTime": "end"
47
+ }
48
+ }
49
+ ```
50
+
51
+ ### Patch Changes
52
+
53
+ - Updated dependencies [8e0f80a]
54
+ - @md2do/config@0.4.0
55
+ - @md2do/core@0.4.0
56
+ - @md2do/todoist@0.4.0
57
+
3
58
  ## 0.3.1
4
59
 
5
60
  ### Patch Changes
package/README.md CHANGED
@@ -120,6 +120,31 @@ md2do list --project acme-app
120
120
  md2do list --person jane
121
121
  ```
122
122
 
123
+ ## ⚙️ Configuration
124
+
125
+ Set up md2do with an interactive wizard:
126
+
127
+ ```bash
128
+ # Interactive setup
129
+ md2do config init
130
+
131
+ # Or configure specific values
132
+ md2do config set workday.startTime "09:00"
133
+ md2do config set defaultAssignee "alice"
134
+
135
+ # View current config
136
+ md2do config list
137
+ ```
138
+
139
+ **Quick config for common settings:**
140
+
141
+ - Work hours (for time-based due dates)
142
+ - Default assignee (for filtering)
143
+ - Output preferences (format, colors)
144
+ - Warning levels (strict/recommended/off)
145
+
146
+ [Full configuration guide →](https://github.com/TeamNickHart/md2do/blob/main/docs/guide/configuration.md)
147
+
123
148
  ## 🔄 Todoist Integration
124
149
 
125
150
  Sync your markdown tasks with Todoist: