Source code for symupy.abstractions.command

"""
Abstract Command 
=================
This module implements a general metaclass for a command.
"""

# ============================================================================
# STANDARD  IMPORTS
# ============================================================================

import abc

# ============================================================================
#  CLASS AND DEFINITIONS
# ============================================================================


[docs]class AbsCommand(metaclass=abc.ABCMeta): """Abstract command class"""
[docs] @abc.abstractmethod def execute(self): """Standard launcher"""
@abc.abstractproperty def names(self): """Command name""" @abc.abstractproperty def description(self): """Command brief description"""