Flox Package Database 1
CRUD Operations on Nix Package Metadata
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
flox::command::AttrPathMixin Struct Reference

Extend a command state blob with an attribute path to "target". More...

#include <command.hh>

Inheritance diagram for flox::command::AttrPathMixin:
flox::pkgdb::GetCommand flox::pkgdb::ScrapeCommand

Public Member Functions

argparse::Argument & addAttrPathArgs (argparse::ArgumentParser &parser)
 Sets the attribute path to be scraped.
 
void fixupAttrPath ()
 Sets fallback attrPath to a package set.
 

Public Attributes

flox::AttrPath attrPath
 

Detailed Description

Extend a command state blob with an attribute path to "target".

Member Function Documentation

◆ addAttrPathArgs()

argparse::Argument & flox::command::AttrPathMixin::addAttrPathArgs ( argparse::ArgumentParser &  parser)

Sets the attribute path to be scraped.

If no system is given use the current system.

◆ fixupAttrPath()

void flox::command::AttrPathMixin::fixupAttrPath ( )

Sets fallback attrPath to a package set.

If attrPath is empty use, packages.<SYTEM>. If attrPath is one element then add "current system" as <SYSTEM>.


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