Module: Pike13::CLI::Commands::Concerns::ReportingQuery

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



8
9
10
11
12
13
14
15
16
17
18
# File 'lib/pike13/cli/commands/concerns/reporting_query.rb', line 8

def self.included(base)
  base.class_eval do
    format_options
    option :fields, type: :array, desc: "Fields to include (defaults to basic fields)"
    option :filter, type: :hash, desc: "Filter criteria"
    option :group, type: :string, desc: "Group by field"
    option :sort, type: :array, desc: "Sort fields"
    option :page, type: :hash, desc: "Pagination options"
    option :total_count, type: :boolean, desc: "Include total count in response"
  end
end