Class: ShapeupCli::Commands::Search
- Defined in:
- lib/shapeup_cli/commands/search.rb
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Base
#agent_help?, #initialize, run
Constructor Details
This class inherits a constructor from ShapeupCli::Commands::Base
Class Method Details
.metadata ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/shapeup_cli/commands/search.rb', line 6 def self. { command: "search", path: "shapeup search", short: "Search across pitches, scopes, tasks, tickets, and users", flags: [], examples: [ "shapeup search \"onboarding\"", "shapeup search \"login bug\" --json" ] } end |
Instance Method Details
#execute ⇒ Object
19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/shapeup_cli/commands/search.rb', line 19 def execute query = positional_arg(0) || abort("Usage: shapeup search \"query\"") result = call_tool("search", query: query) render result, summary: "Search: #{query}", breadcrumbs: [ { cmd: "shapeup pitch <id>", description: "View a pitch" }, { cmd: "shapeup cycle show <id>", description: "View a cycle" } ] end |