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

#include <command.hh>

Public Types

typedef std::map< std::vector< std::string >, std::function< ref< Command >()> > Commands
 

Public Member Functions

 RegisterCommand (std::vector< std::string > &&name, std::function< ref< Command >()> command)
 

Static Public Member Functions

static nix::Commands getCommandsFor (const std::vector< std::string > &prefix)
 

Static Public Attributes

static Commands * commands = nullptr
 

Detailed Description

A helper class for registering Command commands globally.


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