-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat/add create and list commands (#39)
* feat: add comand list to list pipelines * feat: add command create to cli and folder structure reorg * enh: renamed pipelines_deployer.py -> pipeline_deployer.py * test: update tests * doc: update readme * enh: factorize get config paths
- Loading branch information
1 parent
d01d60c
commit 9b973bf
Showing
12 changed files
with
236 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
from enum import Enum | ||
|
||
from loguru import logger | ||
|
||
|
||
class LoguruLevel(str, Enum): # noqa: D101 | ||
TRACE = "TRACE" | ||
DEBUG = "DEBUG" | ||
INFO = "INFO" | ||
SUCCESS = "SUCCESS" | ||
WARNING = "WARNING" | ||
ERROR = "ERROR" | ||
CRITICAL = "CRITICAL" | ||
|
||
|
||
class disable_logger(object): | ||
"""Context manager to disable a loguru logger.""" | ||
|
||
def __init__(self, name: str) -> None: # noqa: D107 | ||
self.name = name | ||
|
||
def __enter__(self) -> None: # noqa: D105 | ||
logger.disable(self.name) | ||
|
||
def __exit__(self, exc_type, exc_val, exc_tb) -> None: # noqa: D105 | ||
logger.enable(self.name) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.