aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/command/base_command.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe/src/command/base_command.rs')
-rw-r--r--crates/shirabe/src/command/base_command.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/crates/shirabe/src/command/base_command.rs b/crates/shirabe/src/command/base_command.rs
index b80cb2b4..e05478f4 100644
--- a/crates/shirabe/src/command/base_command.rs
+++ b/crates/shirabe/src/command/base_command.rs
@@ -246,6 +246,12 @@ macro_rules! delegate_base_command_trait_impls_to_inner {
impl Command for BaseCommandData {
shirabe_external_packages::delegate_command_trait_impls_to_inner!(inner);
+
+ fn get_class(&self) -> String {
+ // Forwards to the base state's panicking get_class; concrete commands supply their
+ // FQCN through delegate_command_trait_impls_to_inner!'s two-argument variant.
+ self.inner.get_class()
+ }
}
impl BaseCommand for BaseCommandData {