Nix 2.26.3
Nix, the purely functional package manager; unstable internal interfaces
 
Loading...
Searching...
No Matches
nix::Completions Struct Referencefinal

#include <root.hh>

Inheritance diagram for nix::Completions:
nix::AddCompletions

Public Member Functions

void setType (Type type) override
 
void add (std::string completion, std::string description="") override
 
- Public Member Functions inherited from nix::AddCompletions
virtual void setType (Type type)=0
 

Public Attributes

std::set< Completioncompletions
 
Type type = Type::Normal
 

Additional Inherited Members

- Public Types inherited from nix::AddCompletions
enum class  Type { Normal , Filenames , Attrs }
 

Detailed Description

The concrete implementation of a collection of completions.

This is exposed so that the main entry point can print out the collected completions.

Member Function Documentation

◆ add()

void nix::Completions::add ( std::string completion,
std::string description = "" )
overridevirtual

Add a single completion to the collection

Implements nix::AddCompletions.


The documentation for this struct was generated from the following files: