Expand description
CommandTrait and command builder.
To make a new native command:
- Implement
CommandTrait, 2 ways;- Manually implement it to your types.
- Use
builderhelper.
- Use
inventory::submitwith aCommandDescriptionto register the command at compile-time.
Modules§
- builder
- Helper for building command from node-definition files.
- prelude
- Import common types for writing commands.
Structs§
- Command
Description - Use
inventory::submitto register commands at compile-time. - Command
Factory - Command
Index - Instruction
Info - Specify the order with which a command will return its output:
- Match
Command
Enums§
Traits§
- Command
Trait - Generic trait for implementing commands.
Functions§
Type Aliases§
- Command
Error - Error type of commmands.
- FnNew
Result