Commit 664ab81
refactor: replace cobra subcommands with pflag/viper flags
Replace cobra CLI framework with pflag and viper to use simple flags
(-c for client mode, -s for server mode) instead of subcommands.
This simplifies the command-line interface and removes the dependency
on cobra while maintaining all existing functionality.
Changes:
- Remove connect.go and serve.go subcommand files
- Consolidate all CLI logic into main.go with pflag
- Use -c/--client and -s/--server flags for mode selection
- Update tests to work with new flag-based interface
- Remove cobra dependency, keep pflag and viper
- Update documentation to reflect new architecture
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 59bb183 commit 664ab81
File tree
17 files changed
+529
-417
lines changed17 files changed
+529
-417
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
41 | | - | |
42 | | - | |
| 40 | + | |
43 | 41 | | |
44 | 42 | | |
45 | 43 | | |
| |||
79 | 77 | | |
80 | 78 | | |
81 | 79 | | |
82 | | - | |
| 80 | + | |
| 81 | + | |
83 | 82 | | |
84 | 83 | | |
85 | 84 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
361 | 361 | | |
362 | 362 | | |
363 | 363 | | |
364 | | - | |
| 364 | + | |
365 | 365 | | |
366 | 366 | | |
367 | 367 | | |
| |||
393 | 393 | | |
394 | 394 | | |
395 | 395 | | |
396 | | - | |
| 396 | + | |
397 | 397 | | |
398 | 398 | | |
399 | 399 | | |
| |||
412 | 412 | | |
413 | 413 | | |
414 | 414 | | |
415 | | - | |
| 415 | + | |
This file was deleted.
0 commit comments