Skip to content

Commit

Permalink
chore(enums): default target datasets (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdsanima authored Nov 4, 2023
1 parent 69bf84d commit c7572a7
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mdsanima_cli/core/enums/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from mdsanima_cli.core.enums.auto import AutoName
from mdsanima_cli.core.enums.auto import AutoNameLower
from mdsanima_cli.core.enums.auto import AutoNameUpper
from mdsanima_cli.core.enums.target import Target


__all__ = ["AutoName", "AutoNameLower", "AutoNameUpper"]
__all__ = ["AutoName", "AutoNameLower", "AutoNameUpper", "Target"]
39 changes: 39 additions & 0 deletions mdsanima_cli/core/enums/target.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Copyright (c) 2023 MDSANIMA

"""Target values that share between a group of enumerations."""


from __future__ import annotations

from enum import auto
from enum import unique

from mdsanima_cli.core.enums import AutoName


@unique
class Target(AutoName):
"""The default target datasets."""

CLI = auto()
CMD = auto()
MDSANIMA = auto()
COMMAND = auto()
OPTIONS = auto()
CONFIG = auto()
USAGE = auto()
SHOW = auto()
LIST = auto()
HELP = auto()
PRINT = auto()
RENAME = auto()
APEND = auto()
CONVERT = auto()
GENERATE = auto()
RESIZE = auto()

def __str__(self):
return f"{self.name}"

def __format__(self, spec):
return f"{self.name}"

0 comments on commit c7572a7

Please sign in to comment.