[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:
2026-03-20 16:48:15 +08:00
parent 292154621c
commit db20b739cd
2 changed files with 1 additions and 3 deletions

View File

@@ -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"

View File

@@ -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