15 std::set<Completion> completions;
16 Type type = Type::Normal;
18 void setType(
Type type)
override;
19 void add(std::string completion, std::string description =
"")
override;
47 void parseCmdline(
const Strings & cmdline,
bool allowShebang =
false);
49 std::shared_ptr<Completions> completions;
82 std::optional<std::string> needsCompletion(std::string_view
s);
Type
Definition args.hh:425
std::function< CompleterFun > CompleterClosure
Definition args.hh:167
Path commandBaseDir
The command's "working directory", but only set when top level.
Definition root.hh:41
std::vector< DeferredCompletion > deferredCompletions
Definition root.hh:70
void parseCmdline(const Strings &cmdline, bool allowShebang=false)
Definition args.cc:252
Path getCommandBaseDir() const override
Get the base directory for the command.
Definition args.cc:361
std::set< ExperimentalFeature > flagExperimentalFeatures
Definition root.hh:78
return s
Definition lexer.l:459
void add(std::string completion, std::string description="") override
Definition args.cc:43
std::string Path
Definition types.hh:22