pike13-cli 0.2.2 → 0.2.3
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 +8 -0
- data/README.md +4 -4
- data/lib/pike13/cli/commands/base.rb +7 -1
- data/lib/pike13/cli/commands/desk/event.rb +5 -0
- data/lib/pike13/cli/commands/desk/invoice.rb +5 -0
- data/lib/pike13/cli/commands/desk/location.rb +5 -0
- data/lib/pike13/cli/commands/desk/service.rb +5 -0
- data/lib/pike13/cli/commands/desk/waitlist_entry.rb +4 -0
- data/lib/pike13/cli/commands/desk.rb +5 -2
- data/lib/pike13/cli/commands/front/event.rb +5 -0
- data/lib/pike13/cli/commands/front/location.rb +5 -0
- data/lib/pike13/cli/commands/front/service.rb +5 -0
- data/lib/pike13/cli/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 920c87ea78eca41c9a8ecf86d88543d261409eb8e9836b85a816007078c2eab7
|
|
4
|
+
data.tar.gz: 5de6a6180d416d4fc7811f0beea0612cbf9d542b286c1fb9d1c64c5d2ac4ae15
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 72f787c4b8d2c6881657dce67419b91a08b656c7f3582643cb38bbd2d3c1019f8e8a42cce08fd00401d15d44ed5dacedef2b0520722dc68ac841f0e849b5953d
|
|
7
|
+
data.tar.gz: 4a60dab31d632ae4365f96c34c60ed6401b8288a5719396d3500107298d86b87400bad80dab6e5c84185e42a449d71063a8b20be501169d9d8f54385024ac4d3
|
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.3] - 2025-11-22
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
- **Help Command Cleanup** - Removed redundant help command from command listings
|
|
12
|
+
- The `help` command no longer appears in command lists since `-h/--help` flags are already available
|
|
13
|
+
- Simplified command discovery by removing duplicate help options
|
|
14
|
+
- Improved command listing clarity across all namespaces
|
|
15
|
+
|
|
8
16
|
## [0.2.2] - 2025-11-19
|
|
9
17
|
|
|
10
18
|
### Fixed
|
data/README.md
CHANGED
|
@@ -353,10 +353,10 @@ pike13 desk make_ups reasons
|
|
|
353
353
|
pike13 desk make_ups generate 456 --make-up-reason-id 126989 --free-form-reason "Client was sick"
|
|
354
354
|
|
|
355
355
|
# Waitlist
|
|
356
|
-
pike13 desk
|
|
357
|
-
pike13 desk
|
|
358
|
-
pike13 desk
|
|
359
|
-
pike13 desk
|
|
356
|
+
pike13 desk waitlist_entry list
|
|
357
|
+
pike13 desk waitlist_entry get 789
|
|
358
|
+
pike13 desk waitlist_entry create --person-id 123 --event-id 100
|
|
359
|
+
pike13 desk waitlist_entry delete 789
|
|
360
360
|
|
|
361
361
|
# Person-related resources
|
|
362
362
|
pike13 desk person_visits list 123
|
|
@@ -11,7 +11,13 @@ 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
|
-
|
|
14
|
+
|
|
15
|
+
# Override printable_commands to hide redundant help command from listings
|
|
16
|
+
def self.printable_commands(*args)
|
|
17
|
+
result = super
|
|
18
|
+
# Remove the help command from listings since it's redundant when using -h/--help
|
|
19
|
+
result.reject { |item| item.first.include?("help [COMMAND]") }
|
|
20
|
+
end
|
|
15
21
|
|
|
16
22
|
# Override help to show command-specific options
|
|
17
23
|
def self.handle_argument_error(task, error, _type)
|
|
@@ -5,6 +5,11 @@ module Pike13
|
|
|
5
5
|
module Commands
|
|
6
6
|
class Desk < Base
|
|
7
7
|
class Event < Base
|
|
8
|
+
# Override base_usage to match the actual subcommand registration
|
|
9
|
+
def self.base_usage
|
|
10
|
+
"desk events"
|
|
11
|
+
end
|
|
12
|
+
|
|
8
13
|
desc "list", "List all events"
|
|
9
14
|
map "ls" => :list
|
|
10
15
|
format_options
|
|
@@ -5,6 +5,11 @@ module Pike13
|
|
|
5
5
|
module Commands
|
|
6
6
|
class Desk < Base
|
|
7
7
|
class Invoice < Base
|
|
8
|
+
# Override base_usage to match the actual subcommand registration
|
|
9
|
+
def self.base_usage
|
|
10
|
+
"desk invoices"
|
|
11
|
+
end
|
|
12
|
+
|
|
8
13
|
desc "list", "List all invoices"
|
|
9
14
|
map "ls" => :list
|
|
10
15
|
format_options
|
|
@@ -5,6 +5,11 @@ module Pike13
|
|
|
5
5
|
module Commands
|
|
6
6
|
class Desk < Base
|
|
7
7
|
class Location < Base
|
|
8
|
+
# Override base_usage to match the actual subcommand registration
|
|
9
|
+
def self.base_usage
|
|
10
|
+
"desk locations"
|
|
11
|
+
end
|
|
12
|
+
|
|
8
13
|
desc "list", "List all locations"
|
|
9
14
|
map "ls" => :list
|
|
10
15
|
format_options
|
|
@@ -5,6 +5,11 @@ module Pike13
|
|
|
5
5
|
module Commands
|
|
6
6
|
class Desk < Base
|
|
7
7
|
class Service < Base
|
|
8
|
+
# Override base_usage to match the actual subcommand registration
|
|
9
|
+
def self.base_usage
|
|
10
|
+
"desk services"
|
|
11
|
+
end
|
|
12
|
+
|
|
8
13
|
desc "list", "List all services"
|
|
9
14
|
map "ls" => :list
|
|
10
15
|
format_options
|
|
@@ -5,6 +5,10 @@ module Pike13
|
|
|
5
5
|
module Commands
|
|
6
6
|
class Desk < Base
|
|
7
7
|
class WaitlistEntry < Base
|
|
8
|
+
# Override base_usage to match the actual subcommand registration
|
|
9
|
+
def self.base_usage
|
|
10
|
+
"desk waitlist_entry"
|
|
11
|
+
end
|
|
8
12
|
desc "list", "List waitlist entries"
|
|
9
13
|
map "ls" => :list
|
|
10
14
|
format_options
|
|
@@ -122,8 +122,11 @@ module Pike13
|
|
|
122
122
|
desc "mu SUBCOMMAND", "Manage make-ups (shortcut)"
|
|
123
123
|
subcommand "mu", Desk::MakeUp
|
|
124
124
|
|
|
125
|
-
desc "
|
|
126
|
-
subcommand "
|
|
125
|
+
desc "waitlist_entry SUBCOMMAND", "Manage waitlist entries"
|
|
126
|
+
subcommand "waitlist_entry", Desk::WaitlistEntry
|
|
127
|
+
|
|
128
|
+
desc "wl SUBCOMMAND", "Manage waitlist entries (shortcut)"
|
|
129
|
+
subcommand "wl", Desk::WaitlistEntry
|
|
127
130
|
|
|
128
131
|
desc "person_visits SUBCOMMAND", "Manage person visits"
|
|
129
132
|
subcommand "person_visits", Desk::PersonVisit
|
|
@@ -5,6 +5,11 @@ module Pike13
|
|
|
5
5
|
module Commands
|
|
6
6
|
class Front < Base
|
|
7
7
|
class Event < Base
|
|
8
|
+
# Override base_usage to match the actual subcommand registration
|
|
9
|
+
def self.base_usage
|
|
10
|
+
"front events"
|
|
11
|
+
end
|
|
12
|
+
|
|
8
13
|
desc "list", "List events (client view)"
|
|
9
14
|
format_options
|
|
10
15
|
option :from, type: :string, desc: "Start date (YYYY-MM-DD or timestamp)"
|
|
@@ -5,6 +5,11 @@ module Pike13
|
|
|
5
5
|
module Commands
|
|
6
6
|
class Front < Base
|
|
7
7
|
class Location < Base
|
|
8
|
+
# Override base_usage to match the actual subcommand registration
|
|
9
|
+
def self.base_usage
|
|
10
|
+
"front locations"
|
|
11
|
+
end
|
|
12
|
+
|
|
8
13
|
desc "list", "List locations (client view)"
|
|
9
14
|
format_options
|
|
10
15
|
def list
|
|
@@ -5,6 +5,11 @@ module Pike13
|
|
|
5
5
|
module Commands
|
|
6
6
|
class Front < Base
|
|
7
7
|
class Service < Base
|
|
8
|
+
# Override base_usage to match the actual subcommand registration
|
|
9
|
+
def self.base_usage
|
|
10
|
+
"front services"
|
|
11
|
+
end
|
|
12
|
+
|
|
8
13
|
desc "list", "List services (client view)"
|
|
9
14
|
format_options
|
|
10
15
|
def list
|
data/lib/pike13/cli/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Juan Huttemann
|
|
@@ -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.6.9
|
|
185
185
|
specification_version: 4
|
|
186
186
|
summary: Command-line interface for Pike13 API
|
|
187
187
|
test_files: []
|