ic-code 1.7.1__py3-none-any.whl → 1.7.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ic/__init__.py +1 -1
- ic/cli.py +12 -1
- ic_code-1.7.2.dist-info/METADATA +688 -0
- {ic_code-1.7.1.dist-info → ic_code-1.7.2.dist-info}/RECORD +8 -8
- ic_code-1.7.1.dist-info/METADATA +0 -575
- {ic_code-1.7.1.dist-info → ic_code-1.7.2.dist-info}/WHEEL +0 -0
- {ic_code-1.7.1.dist-info → ic_code-1.7.2.dist-info}/entry_points.txt +0 -0
- {ic_code-1.7.1.dist-info → ic_code-1.7.2.dist-info}/licenses/LICENSE +0 -0
- {ic_code-1.7.1.dist-info → ic_code-1.7.2.dist-info}/top_level.txt +0 -0
ic/__init__.py
CHANGED
|
@@ -4,7 +4,7 @@ IC (Infra Resource Management CLI) - A comprehensive tool for managing cloud inf
|
|
|
4
4
|
This package provides CLI tools and libraries for managing AWS, GCP, OCI, CloudFlare, and SSH resources.
|
|
5
5
|
"""
|
|
6
6
|
|
|
7
|
-
__version__ = "1.7.
|
|
7
|
+
__version__ = "1.7.2"
|
|
8
8
|
__author__ = "sykim"
|
|
9
9
|
__email__ = "cruiser594@gmail.com"
|
|
10
10
|
|
ic/cli.py
CHANGED
|
@@ -159,6 +159,9 @@ def execute_multi_service_command(platform_name, services, command, args):
|
|
|
159
159
|
"""Execute a command across multiple services in parallel."""
|
|
160
160
|
import concurrent.futures
|
|
161
161
|
from threading import Lock
|
|
162
|
+
|
|
163
|
+
if platform_name == 'cf':
|
|
164
|
+
platform_name = 'cloudflare'
|
|
162
165
|
|
|
163
166
|
discovery = get_platform_discovery()
|
|
164
167
|
output_lock = Lock()
|
|
@@ -270,6 +273,8 @@ def execute_multi_service_command(platform_name, services, command, args):
|
|
|
270
273
|
|
|
271
274
|
def execute_single_command(args):
|
|
272
275
|
"""Execute a single command using the platform discovery system."""
|
|
276
|
+
if getattr(args, 'platform', None) == 'cf':
|
|
277
|
+
args.platform = 'cloudflare'
|
|
273
278
|
discovery = get_platform_discovery()
|
|
274
279
|
|
|
275
280
|
# Validate platform availability
|
|
@@ -360,14 +365,20 @@ def setup_platform_parsers(platform_subparsers):
|
|
|
360
365
|
if platform_name in dev_platforms:
|
|
361
366
|
help_text += " (개발 중 - 버그 가능성 있음)"
|
|
362
367
|
|
|
368
|
+
platform_aliases = ['cf'] if platform_name == 'cloudflare' else []
|
|
363
369
|
if platform_name in dev_platforms:
|
|
364
370
|
platform_parser = platform_subparsers.add_parser(
|
|
365
371
|
platform_name,
|
|
372
|
+
aliases=platform_aliases,
|
|
366
373
|
help=help_text,
|
|
367
374
|
formatter_class=lambda prog, p=platform_name: DevelopmentStatusHelpFormatter(p.upper(), prog)
|
|
368
375
|
)
|
|
369
376
|
else:
|
|
370
|
-
platform_parser = platform_subparsers.add_parser(
|
|
377
|
+
platform_parser = platform_subparsers.add_parser(
|
|
378
|
+
platform_name,
|
|
379
|
+
aliases=platform_aliases,
|
|
380
|
+
help=help_text
|
|
381
|
+
)
|
|
371
382
|
|
|
372
383
|
# Create service subparsers
|
|
373
384
|
service_subparsers = platform_parser.add_subparsers(
|