id = "cal" name = "cal" description = "Display a calendar and the date of Easter." executables = ["cal"] [commands] format = 1 label = "Show calendar" description = "Print a month or a whole year. Month names or numbers are accepted by -m." quality = "ai-draft" base = "fig:cal" parser = { end_of_options = "--", interleave = "permute", long_equals = true, short_attached = true, short_bundles = true } [[commands.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/cal.ts" license = "MIT" [[commands.field]] id = "year" label = "Year" type = "integer" position = 0 sources = ["fig"] [[commands.field]] id = "month" label = "Month" description = "A month name or a number." type = "string" option = ["-m"] suggestions = [ { value = "january", label = "January" }, { value = "february", label = "February" }, { value = "march", label = "March" }, { value = "april", label = "April" }, { value = "may", label = "May" }, { value = "june", label = "June" }, { value = "july", label = "July" }, { value = "august", label = "August" }, { value = "september", label = "September" }, { value = "october", label = "October" }, { value = "november", label = "November" }, { value = "december", label = "December" }, ] sources = ["fig"] [[commands.field]] id = "whole_year" label = "Whole year" description = "Display a calendar for the specified year." type = "boolean" option = ["-y"] sources = ["fig"] [[commands.field]] id = "julian" label = "Julian days" description = "Number days from January 1." type = "boolean" option = ["-j"] sources = ["fig"] [[commands.field]] id = "no_highlight" label = "No highlight of today" type = "boolean" option = ["-h"] sources = ["fig"] [[commands.task]] id = "year" label = "Whole year" fields = ["year", "whole_year"] required = ["year"] set = { whole_year = [true] } [[commands.task]] id = "month" label = "One month" fields = ["month", "year"] required = ["month"] [[commands.group]] id = "basic" label = "Basic" fields = ["year", "month", "whole_year"] [[commands.group]] id = "advanced" label = "Advanced" fields = ["julian", "no_highlight"]