pike13-cli 0.2.1 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1fb670799c8613bf30e57bc2a27f67fa56688013c81040d2f99b0a831ec5b12e
4
- data.tar.gz: 7723a7b7bc57df97147dc8ead89751d7913881e6a24282000df4ff69d56b1963
3
+ metadata.gz: 2a25727e462bc16901a2b280d632ba8f1724357b6f707375ffddbd66738c4657
4
+ data.tar.gz: 71c87d7cc6ed410fdea1122c1bb886db60eb16d715156079aa156289177c95fd
5
5
  SHA512:
6
- metadata.gz: e02eefafc87f6fc027c13c162e5c8a76bf27a6688297ddaa5c70739174d9040535889aa2def7a65f6d860b2a5b09392640a4bb83896037c0505b217559c1c050
7
- data.tar.gz: 15a52cd46b1aacd85c79bf925ce7f44e05c3a4e2b873ef8f9d970119fd3d4752b49bcb719d014cad83969c87d6c9b7ae99e0d3a77e35a3e48081db843b65a619
6
+ metadata.gz: 1cfe95f61afb73f1f41d35af4496c881ff4bcdbd82797379a7b52848b2e4bee078e62a463ed9f67a4431a7a5e2b69db1775d839ee406997cefc1f09836f22c78
7
+ data.tar.gz: d27c75165cac36d07447b22f12f4d066b6ea9201f57e86635d6c31e3a3b863bd48e3075022b0aa556f2d6d6d1a70c591170bda61aec526fbdf0a9121128d93c6
data/CHANGELOG.md CHANGED
@@ -5,6 +5,14 @@ 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
+
8
16
  ## [0.2.1] - 2025-11-18
9
17
 
10
18
  ### Fixed
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 desk help
535
- pike13 desk people help
536
- pike13 desk event_occurrences help
537
- pike13 desk event_occurrence_notes help
538
- pike13 desk custom_fields help
539
- pike13 desk forms_of_payment help
540
- pike13 report help
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 desk help
945
- pike13 desk people help
946
- pike13 desk event_occurrences help
947
- pike13 desk custom_fields help
948
- pike13 desk forms_of_payment help
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
@@ -9,7 +9,7 @@ module Pike13
9
9
  def self.base_usage
10
10
  "account people"
11
11
  end
12
- desc "list", "List all people across businesses"
12
+ desc "list", "List all people across your businesses"
13
13
  format_options
14
14
  def list
15
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Pike13
4
4
  module CLI
5
- VERSION = "0.2.1"
5
+ VERSION = "0.2.2"
6
6
  end
7
7
  end
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.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
- - Pike13 CLI Contributors
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.6.9
184
+ rubygems_version: 3.7.2
185
185
  specification_version: 4
186
186
  summary: Command-line interface for Pike13 API
187
187
  test_files: []