[M] refactor: move encryptConfig to package module
Move encryptConfig.py from root to src/config_man/encrypt_config.py, update imports to use package path, and add console script entry point. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -41,6 +41,7 @@ test = [
|
|||||||
|
|
||||||
[project.scripts]
|
[project.scripts]
|
||||||
config-man = "config_man.cli.main:main"
|
config-man = "config_man.cli.main:main"
|
||||||
|
config-man-encrypt = "config_man.encrypt_config:main"
|
||||||
|
|
||||||
[project.urls]
|
[project.urls]
|
||||||
Homepage = "https://github.com/config-man/config-man"
|
Homepage = "https://github.com/config-man/config-man"
|
||||||
|
|||||||
@@ -13,9 +13,6 @@ from rich.console import Console
|
|||||||
from rich.panel import Panel
|
from rich.panel import Panel
|
||||||
from rich.syntax import Syntax
|
from rich.syntax import Syntax
|
||||||
|
|
||||||
# Add the src directory to the path so we can import the crypto module
|
|
||||||
sys.path.insert(0, str(Path(__file__).parent / "src"))
|
|
||||||
|
|
||||||
from config_man.utils.crypto import encrypt
|
from config_man.utils.crypto import encrypt
|
||||||
|
|
||||||
# Initialize rich console
|
# Initialize rich console
|
||||||
Reference in New Issue
Block a user