Module command

Module command 

Source
Expand description

CommandTrait and command builder.

To make a new native command:

  1. Implement CommandTrait, 2 ways;
    • Manually implement it to your types.
    • Use builder helper.
  2. Use inventory::submit with a CommandDescription to register the command at compile-time.

Modules§

builder
Helper for building command from node-definition files.
prelude
Import common types for writing commands.

Structs§

CommandDescription
Use inventory::submit to register commands at compile-time.
CommandFactory
CommandIndex
InstructionInfo
Specify the order with which a command will return its output:
MatchCommand

Enums§

MatchName

Traits§

CommandTrait
Generic trait for implementing commands.

Functions§

collect_commands

Type Aliases§

CommandError
Error type of commmands.
FnNewResult