module Noir::CLI::ListCommand

Overview

noir list <techs|taggers|formats>

Static built-in catalogs. These will never grow update-style verbs, so they live under a shared list namespace rather than as their own subcommand modules.

Defined in:

cli/commands/list.cr

Constant Summary

AI_CONTEXT_KINDS = ["guards", "sinks", "validators", "signals"] of ::String
LIST_FORMATS = ["text", "json", "yaml"] of ::String

Output formats list itself understands. text is the human-readable default; json/yaml re-serialize the same catalogs for scripting.

SUBJECTS = ["techs", "taggers", "formats"] of ::String

Class Method Summary

Class Method Detail

def self.parse_argv(argv : Array(String)) : Parsed #

[View source]
def self.print_formats(format : String = "text", io : IO = STDOUT) #

[View source]
def self.print_help(io : IO = STDOUT) #

[View source]
def self.print_taggers(format : String = "text", io : IO = STDOUT) #

[View source]
def self.print_techs(format : String = "text", io : IO = STDOUT) #

[View source]
def self.run(argv : Array(String)) #

[View source]