Create unified trait for ConsoleCommands
Closed this issue · 1 comments
alice-i-cecile commented
Writing code like TC: CommandName + CommandArgs + CommandHelp
is tedious and unclear.
Consider adding a ConsoleCommand: CommandName + CommandArgs + CommandHelp
trait, and then creating blanket impl for it.
alice-i-cecile commented
I would also toss in the Resource
bound, so then the SystemParam
impl works correctly.
My version:
trait Commandlike: Resource + CommandName + CommandArgs + CommandHelp {}
impl<T: Resource + CommandName + CommandArgs + CommandHelp> Commandlike for T {}