Nix 2.93.3
Lix: A modern, delicious implementation of the Nix package manager; unstable internal interfaces
Loading...
Searching...
No Matches
nix::CommandRegistry Struct Reference

#include <command.hh>

Public Types

using CommandMap

Static Public Member Functions

static void add (std::vector< std::string > &&name, std::function< ref< Command >(AsyncIoRoot &aio)> command)
static nix::CommandMap getCommandsFor (const std::vector< std::string > &prefix)

Static Public Attributes

static CommandMap * commands = nullptr

Detailed Description

A helper class for registering Command commands globally.

Member Typedef Documentation

◆ CommandMap

using nix::CommandRegistry::CommandMap
Initial value:
std::map<
std::vector<std::string>,
std::function<ref<Command>(AsyncIoRoot & aio)>
>
Definition async.hh:39

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