Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Understanding the CLI routing

The nxc command invokes nixos_compose/cli.py which in turns calls one of the files in nixos_compose/commands based on the command verb that was provided.

Here, command verb is to be understood as a single word following the nxc characters after a space, like is done nowadays with several command line tools.

For instance the command verb for nxc connect is connect, which will be handled in nixos_compose/commands/cmd_connect.py.

You will also find a couple various ctx variables passed around the code. It refers to instances of various Contexts object. You can read more on this over here.