Command constructor
Command({})
Instantiates a command with the given values. A command is an action, callable inside the cli.
Implementation
Command({
required this.use,
required this.description,
required this.run,
this.inheritFlags = false,
this.hidden = false,
this.flags = const [],
this.subCommands = const [],
}) {
if (use.length > 15) {
throw Exception(
"The usage of a command shouldn't be longer than 15 characters.",
);
}
}