-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
aac4ec4
commit 444dcc4
Showing
5 changed files
with
69 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
use crate::prelude::*; | ||
|
||
/// Controls the inventory. | ||
#[derive(ConsoleCommand, Parser)] | ||
#[command(name = "inventory")] | ||
#[command(disable_help_flag = true)] | ||
pub struct InventoryCommand { | ||
#[clap(subcommand)] | ||
pub subcommand: InventoryCommands, | ||
} | ||
|
||
#[derive(Debug, Subcommand)] | ||
pub enum InventoryCommands { | ||
/// Lists the items in the inventory. | ||
List, | ||
/// Adds an item to the inventory. | ||
Add { item: String }, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
pub mod commands; | ||
pub mod plugin; | ||
pub mod resources; | ||
pub mod systems; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters