pike13-cli 0.2.0 → 0.2.2
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 +4 -4
- data/CHANGELOG.md +18 -0
- data/README.md +47 -17
- data/lib/pike13/cli/commands/account/person.rb +5 -1
- data/lib/pike13/cli/commands/base.rb +9 -0
- data/lib/pike13/cli/commands/desk/person.rb +4 -0
- data/lib/pike13/cli/commands/desk/staff_member.rb +4 -0
- data/lib/pike13/cli/commands/front/person.rb +4 -0
- data/lib/pike13/cli/commands/front/plan_product.rb +4 -0
- data/lib/pike13/cli/version.rb +1 -1
- data/lib/pike13/cli.rb +3 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2a25727e462bc16901a2b280d632ba8f1724357b6f707375ffddbd66738c4657
|
|
4
|
+
data.tar.gz: 71c87d7cc6ed410fdea1122c1bb886db60eb16d715156079aa156289177c95fd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1cfe95f61afb73f1f41d35af4496c881ff4bcdbd82797379a7b52848b2e4bee078e62a463ed9f67a4431a7a5e2b69db1775d839ee406997cefc1f09836f22c78
|
|
7
|
+
data.tar.gz: d27c75165cac36d07447b22f12f4d066b6ea9201f57e86635d6c31e3a3b863bd48e3075022b0aa556f2d6d6d1a70c591170bda61aec526fbdf0a9121128d93c6
|
data/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,24 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.2.2] - 2025-11-19
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
- **Help Command Documentation** - Improved help command clarity and consistency
|
|
12
|
+
- Updated README.md with better help command examples
|
|
13
|
+
- Enhanced help command display logic in CLI base commands
|
|
14
|
+
- Improved user experience for discovering available commands
|
|
15
|
+
|
|
16
|
+
## [0.2.1] - 2025-11-18
|
|
17
|
+
|
|
18
|
+
### Fixed
|
|
19
|
+
- **Help Command Display Issue** - Fixed help commands showing incorrect singular forms instead of intended plural forms
|
|
20
|
+
- `pike13 desk people --help` now shows `pike13 desk people create/list/get/delete/me/search/update` instead of `pike13 desk person create/list/get/delete/me/search/update`
|
|
21
|
+
- `pike13 desk staff --help` now shows `pike13 desk staff get/list/help/me` instead of `pike13 desk staffmember get/list/help/me`
|
|
22
|
+
- `pike13 front plan_products --help` now shows `pike13 front plan_products get/list/help` instead of `pike13 front planproduct get/list/help`
|
|
23
|
+
- `pike13 account people --help` now shows `pike13 account people help/list` instead of `pike13 account person help/list`
|
|
24
|
+
- Applied `base_usage` overrides to ensure help commands display correct plural naming
|
|
25
|
+
|
|
8
26
|
## [0.2.0] - 2025-11-18
|
|
9
27
|
|
|
10
28
|
### Added
|
data/README.md
CHANGED
|
@@ -530,14 +530,33 @@ pike13 report clients query --progress --format table
|
|
|
530
530
|
|
|
531
531
|
```bash
|
|
532
532
|
# Help for any command
|
|
533
|
-
pike13 help
|
|
534
|
-
pike13
|
|
535
|
-
|
|
536
|
-
pike13 desk
|
|
537
|
-
pike13 desk
|
|
538
|
-
|
|
539
|
-
pike13 desk
|
|
540
|
-
pike13
|
|
533
|
+
pike13 --help
|
|
534
|
+
pike13 -h
|
|
535
|
+
|
|
536
|
+
pike13 desk --help
|
|
537
|
+
pike13 desk -h
|
|
538
|
+
|
|
539
|
+
pike13 desk people --help
|
|
540
|
+
pike13 desk people -h
|
|
541
|
+
|
|
542
|
+
pike13 desk event_occurrences --help
|
|
543
|
+
pike13 desk event_occurrences -h
|
|
544
|
+
|
|
545
|
+
pike13 desk event_occurrence_notes --help
|
|
546
|
+
pike13 desk event_occurrence_notes -h
|
|
547
|
+
|
|
548
|
+
pike13 desk custom_fields --help
|
|
549
|
+
pike13 desk custom_fields -h
|
|
550
|
+
|
|
551
|
+
pike13 desk forms_of_payment --help
|
|
552
|
+
pike13 desk forms_of_payment -h
|
|
553
|
+
|
|
554
|
+
pike13 report --help
|
|
555
|
+
pike13 report -h
|
|
556
|
+
|
|
557
|
+
# Help for specific commands
|
|
558
|
+
pike13 desk people list --help
|
|
559
|
+
pike13 report clients query --help
|
|
541
560
|
|
|
542
561
|
# Verbose output (show HTTP requests and detailed debugging)
|
|
543
562
|
pike13 desk people list --verbose
|
|
@@ -939,19 +958,30 @@ pike13 report clients query --format csv > clients.csv
|
|
|
939
958
|
### Getting Help
|
|
940
959
|
|
|
941
960
|
```bash
|
|
942
|
-
# View help for any command
|
|
943
|
-
pike13 help
|
|
944
|
-
pike13
|
|
945
|
-
|
|
946
|
-
pike13 desk
|
|
947
|
-
pike13 desk
|
|
948
|
-
|
|
961
|
+
# View help for any command (use --help or -h flags)
|
|
962
|
+
pike13 --help
|
|
963
|
+
pike13 -h
|
|
964
|
+
|
|
965
|
+
pike13 desk --help
|
|
966
|
+
pike13 desk -h
|
|
967
|
+
|
|
968
|
+
pike13 desk people --help
|
|
969
|
+
pike13 desk people -h
|
|
970
|
+
|
|
971
|
+
pike13 desk event_occurrences --help
|
|
972
|
+
pike13 desk event_occurrences -h
|
|
973
|
+
|
|
974
|
+
pike13 desk custom_fields --help
|
|
975
|
+
pike13 desk custom_fields -h
|
|
976
|
+
|
|
977
|
+
pike13 desk forms_of_payment --help
|
|
978
|
+
pike13 desk forms_of_payment -h
|
|
949
979
|
|
|
950
980
|
# Check your environment
|
|
951
981
|
pike13 version
|
|
952
982
|
|
|
953
983
|
# List all available commands
|
|
954
|
-
pike13 help | grep -A 100 "Commands:"
|
|
984
|
+
pike13 --help | grep -A 100 "Commands:"
|
|
955
985
|
```
|
|
956
986
|
|
|
957
987
|
## Development
|
|
@@ -969,7 +999,7 @@ gem build pike13-cli.gemspec
|
|
|
969
999
|
gem install pike13-cli-0.1.0.beta.gem
|
|
970
1000
|
|
|
971
1001
|
# Test the CLI
|
|
972
|
-
pike13 help
|
|
1002
|
+
pike13 --help
|
|
973
1003
|
|
|
974
1004
|
# Run tests
|
|
975
1005
|
bundle exec rspec
|
|
@@ -5,7 +5,11 @@ module Pike13
|
|
|
5
5
|
module Commands
|
|
6
6
|
class Account < Base
|
|
7
7
|
class Person < Base
|
|
8
|
-
|
|
8
|
+
# Override the command name display to use "people" instead of "person"
|
|
9
|
+
def self.base_usage
|
|
10
|
+
"account people"
|
|
11
|
+
end
|
|
12
|
+
desc "list", "List all people across your businesses"
|
|
9
13
|
format_options
|
|
10
14
|
def list
|
|
11
15
|
handle_error do
|
|
@@ -11,6 +11,15 @@ module Pike13
|
|
|
11
11
|
# Inherit verbose and quiet options from parent Runner
|
|
12
12
|
class_option :verbose, type: :boolean, aliases: "-v", desc: "Verbose output"
|
|
13
13
|
class_option :quiet, type: :boolean, aliases: "-q", desc: "Quiet mode (errors only)"
|
|
14
|
+
class_option :help, type: :boolean, aliases: "-h", desc: "Show help information"
|
|
15
|
+
|
|
16
|
+
# Override help to show command-specific options
|
|
17
|
+
def self.handle_argument_error(task, error, _type)
|
|
18
|
+
puts "Error: #{error.message}"
|
|
19
|
+
puts
|
|
20
|
+
puts "Run '#{basename} #{base_usage} #{task.name} --help' for more information."
|
|
21
|
+
exit 1
|
|
22
|
+
end
|
|
14
23
|
|
|
15
24
|
# Auto-generate base_usage from class name
|
|
16
25
|
def self.base_usage
|
|
@@ -5,6 +5,10 @@ module Pike13
|
|
|
5
5
|
module Commands
|
|
6
6
|
class Desk < Base
|
|
7
7
|
class Person < Base
|
|
8
|
+
# Override the command name display to use "people" instead of "person"
|
|
9
|
+
def self.base_usage
|
|
10
|
+
"desk people"
|
|
11
|
+
end
|
|
8
12
|
desc "list", "List all people"
|
|
9
13
|
map "ls" => :list
|
|
10
14
|
format_options
|
|
@@ -5,6 +5,10 @@ module Pike13
|
|
|
5
5
|
module Commands
|
|
6
6
|
class Desk < Base
|
|
7
7
|
class StaffMember < Base
|
|
8
|
+
# Override the command name display to use "staff" instead of "staffmember"
|
|
9
|
+
def self.base_usage
|
|
10
|
+
"desk staff"
|
|
11
|
+
end
|
|
8
12
|
desc "list", "List all staff"
|
|
9
13
|
map "ls" => :list
|
|
10
14
|
format_options
|
|
@@ -5,6 +5,10 @@ module Pike13
|
|
|
5
5
|
module Commands
|
|
6
6
|
class Front < Base
|
|
7
7
|
class Person < Base
|
|
8
|
+
# Override the command name display to use "people" instead of "person"
|
|
9
|
+
def self.base_usage
|
|
10
|
+
"front people"
|
|
11
|
+
end
|
|
8
12
|
desc "me", "Get current authenticated client user"
|
|
9
13
|
format_options
|
|
10
14
|
def me
|
|
@@ -5,6 +5,10 @@ module Pike13
|
|
|
5
5
|
module Commands
|
|
6
6
|
class Front < Base
|
|
7
7
|
class PlanProduct < Base
|
|
8
|
+
# Override the command name display to use "plan_products" instead of "planproduct"
|
|
9
|
+
def self.base_usage
|
|
10
|
+
"front plan_products"
|
|
11
|
+
end
|
|
8
12
|
desc "list", "List all plan products"
|
|
9
13
|
format_options
|
|
10
14
|
def list
|
data/lib/pike13/cli/version.rb
CHANGED
data/lib/pike13/cli.rb
CHANGED
|
@@ -17,6 +17,7 @@ module Pike13
|
|
|
17
17
|
class Runner < Thor
|
|
18
18
|
class_option :verbose, type: :boolean, aliases: "-v", desc: "Verbose output"
|
|
19
19
|
class_option :quiet, type: :boolean, aliases: "-q", desc: "Quiet mode (errors only)"
|
|
20
|
+
class_option :help, type: :boolean, aliases: "-h", desc: "Show help information"
|
|
20
21
|
|
|
21
22
|
desc "desk SUBCOMMAND", "Desk namespace (staff interface)"
|
|
22
23
|
subcommand "desk", Commands::Desk
|
|
@@ -56,7 +57,8 @@ module Pike13
|
|
|
56
57
|
# Skip config for help commands
|
|
57
58
|
first_arg = given_args.first
|
|
58
59
|
is_help_command = first_arg == "help" || first_arg == "version" ||
|
|
59
|
-
given_args.any? { |arg| arg.include?("--help") }
|
|
60
|
+
given_args.any? { |arg| arg.include?("--help") || arg.include?("-h") } ||
|
|
61
|
+
given_args.include?("help") # Catch help subcommand at any level
|
|
60
62
|
unless is_help_command || given_args.empty?
|
|
61
63
|
Config.configure_pike13!
|
|
62
64
|
end
|
metadata
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pike13-cli
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
|
-
-
|
|
7
|
+
- Juan Huttemann
|
|
8
8
|
bindir: bin
|
|
9
9
|
cert_chain: []
|
|
10
10
|
date: 1980-01-02 00:00:00.000000000 Z
|
|
@@ -181,7 +181,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
181
181
|
- !ruby/object:Gem::Version
|
|
182
182
|
version: '0'
|
|
183
183
|
requirements: []
|
|
184
|
-
rubygems_version: 3.
|
|
184
|
+
rubygems_version: 3.7.2
|
|
185
185
|
specification_version: 4
|
|
186
186
|
summary: Command-line interface for Pike13 API
|
|
187
187
|
test_files: []
|