Class: SchwarmCli::Commands::Base
- Inherits:
-
Thor
- Object
- Thor
- SchwarmCli::Commands::Base
- Defined in:
- lib/schwarm_cli/commands/base.rb
Direct Known Subclasses
AgentSubscriptions, Agents, Configure, Recurring, RepoSkills, Repos, Secrets, Sessions, SkillFilesCmd, SkillsCmd, Tasks, Templates
Constant Summary collapse
- DEFAULT_LIST_LIMIT =
20
Class Method Summary collapse
- .exit_on_failure? ⇒ Boolean
-
.pagination_options ⇒ Object
Declares –limit, –page, –all options for the next method.
Class Method Details
.exit_on_failure? ⇒ Boolean
12 |
# File 'lib/schwarm_cli/commands/base.rb', line 12 def self.exit_on_failure? = true |
.pagination_options ⇒ Object
Declares –limit, –page, –all options for the next method.
17 18 19 20 21 22 |
# File 'lib/schwarm_cli/commands/base.rb', line 17 def self. method_option :limit, type: :numeric, desc: "Max results per page (default: #{DEFAULT_LIST_LIMIT})" method_option :page, type: :numeric, desc: "Page number (1-indexed)" method_option :all, type: :boolean, default: false, desc: "Fetch all pages (no cap)" end |