Nix 2.36.0
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 >, fun< ref< Command >()> > Commands

Public Member Functions

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

Static Public Member Functions

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

Detailed Description

A helper class for registering Command commands globally.


The documentation for this struct was generated from the following files:
  • libcmd/include/nix/cmd/command.hh
  • libcmd/command.cc