#include <args.hh>
Public Types | |
enum class | Type { Normal , Filenames , Attrs } |
Public Member Functions | |
virtual void | setType (Type type)=0 |
virtual void | add (std::string completion, std::string description="")=0 |
The abstract interface for completions callbacks
The idea is to restrict the callback so it can only add additional completions to the collection, or set the completion type. By making it go through this interface, the callback cannot make any other changes, or even view the completions / completion type that have been set so far.
|
strong |
The type of completion we are collecting.
|
pure virtual |
Add a single completion to the collection
Implemented in nix::Completions.
|
pure virtual |
Set the type of the completions being collected