Restructured CLI meta commands

This commit is contained in:
2025-07-12 17:05:00 +02:00
parent 80ca12938b
commit 3eb8b54a1a
8 changed files with 16 additions and 6 deletions

View File

View File

@@ -6,8 +6,6 @@ This script determines the appropriate Ansible role folder based on the provided
by inspecting each role's vars/main.yml within the roles directory. By default, it assumes the
roles directory is located at the project root, relative to this script's location.
Example:
./get_role_folder_cli.py --application-id my-app-id
"""
import os
import sys
@@ -55,7 +53,7 @@ def main():
'-r', '--roles-path',
default=os.path.join(
os.path.dirname(os.path.realpath(__file__)),
os.pardir, os.pardir,
os.pardir, os.pardir, os.pardir,
'roles'
),
help='Path to the roles directory (default: roles/ at project root)'

View File

@@ -10,7 +10,7 @@ script_dir = Path(__file__).resolve().parent
repo_root = script_dir.parent.parent
sys.path.insert(0, str(repo_root))
from cli.meta.applications import find_application_ids
from cli.meta.applications.all import find_application_ids
def load_yaml_file(path):
try: