|
16 | 16 | from .loadtest.cli import loadtest |
17 | 17 | from .local import local |
18 | 18 | from .models import StackOptions |
| 19 | +from .naming import DEFAULT_STACK_NAME |
19 | 20 |
|
20 | 21 | if TYPE_CHECKING: |
21 | 22 | from .models import Limit |
@@ -92,8 +93,9 @@ def cli() -> None: |
92 | 93 | @click.option( |
93 | 94 | "--name", |
94 | 95 | "-n", |
95 | | - default="limiter", |
96 | | - help="Resource identifier used as the CloudFormation stack name. Default: limiter", |
| 96 | + default=DEFAULT_STACK_NAME, |
| 97 | + show_default=True, |
| 98 | + help="Resource identifier used as the CloudFormation stack name.", |
97 | 99 | ) |
98 | 100 | @click.option( |
99 | 101 | "--region", |
@@ -1161,8 +1163,9 @@ async def _list() -> None: |
1161 | 1163 | @click.option( |
1162 | 1164 | "--name", |
1163 | 1165 | "-n", |
1164 | | - default="limiter", |
1165 | | - help="Resource identifier used as the CloudFormation stack name. Default: limiter", |
| 1166 | + default=DEFAULT_STACK_NAME, |
| 1167 | + show_default=True, |
| 1168 | + help="Resource identifier used as the CloudFormation stack name.", |
1166 | 1169 | ) |
1167 | 1170 | @click.option( |
1168 | 1171 | "--region", |
@@ -1287,8 +1290,9 @@ async def _version() -> None: |
1287 | 1290 | @click.option( |
1288 | 1291 | "--name", |
1289 | 1292 | "-n", |
1290 | | - default="limiter", |
1291 | | - help="Resource identifier used as the CloudFormation stack name. Default: limiter", |
| 1293 | + default=DEFAULT_STACK_NAME, |
| 1294 | + show_default=True, |
| 1295 | + help="Resource identifier used as the CloudFormation stack name.", |
1292 | 1296 | ) |
1293 | 1297 | @click.option( |
1294 | 1298 | "--region", |
@@ -1436,8 +1440,9 @@ async def _upgrade() -> None: |
1436 | 1440 | @click.option( |
1437 | 1441 | "--name", |
1438 | 1442 | "-n", |
1439 | | - default="limiter", |
1440 | | - help="Resource identifier used as the CloudFormation stack name. Default: limiter", |
| 1443 | + default=DEFAULT_STACK_NAME, |
| 1444 | + show_default=True, |
| 1445 | + help="Resource identifier used as the CloudFormation stack name.", |
1441 | 1446 | ) |
1442 | 1447 | @click.option( |
1443 | 1448 | "--region", |
@@ -1571,8 +1576,9 @@ def audit() -> None: |
1571 | 1576 | @click.option( |
1572 | 1577 | "--name", |
1573 | 1578 | "-n", |
1574 | | - default="limiter", |
1575 | | - help="Resource identifier used as the CloudFormation stack name. Default: limiter", |
| 1579 | + default=DEFAULT_STACK_NAME, |
| 1580 | + show_default=True, |
| 1581 | + help="Resource identifier used as the CloudFormation stack name.", |
1576 | 1582 | ) |
1577 | 1583 | @click.option( |
1578 | 1584 | "--region", |
@@ -1718,8 +1724,9 @@ def usage() -> None: |
1718 | 1724 | @click.option( |
1719 | 1725 | "--name", |
1720 | 1726 | "-n", |
1721 | | - default="limiter", |
1722 | | - help="Resource identifier used as the CloudFormation stack name. Default: limiter", |
| 1727 | + default=DEFAULT_STACK_NAME, |
| 1728 | + show_default=True, |
| 1729 | + help="Resource identifier used as the CloudFormation stack name.", |
1723 | 1730 | ) |
1724 | 1731 | @click.option( |
1725 | 1732 | "--region", |
@@ -1908,8 +1915,9 @@ async def _list() -> None: |
1908 | 1915 | @click.option( |
1909 | 1916 | "--name", |
1910 | 1917 | "-n", |
1911 | | - default="limiter", |
1912 | | - help="Resource identifier used as the CloudFormation stack name. Default: limiter", |
| 1918 | + default=DEFAULT_STACK_NAME, |
| 1919 | + show_default=True, |
| 1920 | + help="Resource identifier used as the CloudFormation stack name.", |
1913 | 1921 | ) |
1914 | 1922 | @click.option( |
1915 | 1923 | "--region", |
@@ -2159,8 +2167,9 @@ def resource() -> None: |
2159 | 2167 | @click.option( |
2160 | 2168 | "--name", |
2161 | 2169 | "-n", |
2162 | | - default="limiter", |
2163 | | - help="Stack identifier used as the CloudFormation stack name. Default: limiter", |
| 2170 | + default=DEFAULT_STACK_NAME, |
| 2171 | + show_default=True, |
| 2172 | + help="Stack identifier used as the CloudFormation stack name.", |
2164 | 2173 | ) |
2165 | 2174 | @click.option( |
2166 | 2175 | "--region", |
@@ -2249,8 +2258,9 @@ async def _set() -> None: |
2249 | 2258 | @click.option( |
2250 | 2259 | "--name", |
2251 | 2260 | "-n", |
2252 | | - default="limiter", |
2253 | | - help="Stack identifier used as the CloudFormation stack name. Default: limiter", |
| 2261 | + default=DEFAULT_STACK_NAME, |
| 2262 | + show_default=True, |
| 2263 | + help="Stack identifier used as the CloudFormation stack name.", |
2254 | 2264 | ) |
2255 | 2265 | @click.option( |
2256 | 2266 | "--region", |
@@ -2328,8 +2338,9 @@ async def _get() -> None: |
2328 | 2338 | @click.option( |
2329 | 2339 | "--name", |
2330 | 2340 | "-n", |
2331 | | - default="limiter", |
2332 | | - help="Stack identifier used as the CloudFormation stack name. Default: limiter", |
| 2341 | + default=DEFAULT_STACK_NAME, |
| 2342 | + show_default=True, |
| 2343 | + help="Stack identifier used as the CloudFormation stack name.", |
2333 | 2344 | ) |
2334 | 2345 | @click.option( |
2335 | 2346 | "--region", |
@@ -2406,8 +2417,9 @@ async def _delete() -> None: |
2406 | 2417 | @click.option( |
2407 | 2418 | "--name", |
2408 | 2419 | "-n", |
2409 | | - default="limiter", |
2410 | | - help="Stack identifier used as the CloudFormation stack name. Default: limiter", |
| 2420 | + default=DEFAULT_STACK_NAME, |
| 2421 | + show_default=True, |
| 2422 | + help="Stack identifier used as the CloudFormation stack name.", |
2411 | 2423 | ) |
2412 | 2424 | @click.option( |
2413 | 2425 | "--region", |
@@ -2496,8 +2508,9 @@ def system() -> None: |
2496 | 2508 | @click.option( |
2497 | 2509 | "--name", |
2498 | 2510 | "-n", |
2499 | | - default="limiter", |
2500 | | - help="Stack identifier used as the CloudFormation stack name. Default: limiter", |
| 2511 | + default=DEFAULT_STACK_NAME, |
| 2512 | + show_default=True, |
| 2513 | + help="Stack identifier used as the CloudFormation stack name.", |
2501 | 2514 | ) |
2502 | 2515 | @click.option( |
2503 | 2516 | "--region", |
@@ -2597,8 +2610,9 @@ async def _set() -> None: |
2597 | 2610 | @click.option( |
2598 | 2611 | "--name", |
2599 | 2612 | "-n", |
2600 | | - default="limiter", |
2601 | | - help="Stack identifier used as the CloudFormation stack name. Default: limiter", |
| 2613 | + default=DEFAULT_STACK_NAME, |
| 2614 | + show_default=True, |
| 2615 | + help="Stack identifier used as the CloudFormation stack name.", |
2602 | 2616 | ) |
2603 | 2617 | @click.option( |
2604 | 2618 | "--region", |
@@ -2678,8 +2692,9 @@ async def _get() -> None: |
2678 | 2692 | @click.option( |
2679 | 2693 | "--name", |
2680 | 2694 | "-n", |
2681 | | - default="limiter", |
2682 | | - help="Stack identifier used as the CloudFormation stack name. Default: limiter", |
| 2695 | + default=DEFAULT_STACK_NAME, |
| 2696 | + show_default=True, |
| 2697 | + help="Stack identifier used as the CloudFormation stack name.", |
2683 | 2698 | ) |
2684 | 2699 | @click.option( |
2685 | 2700 | "--region", |
@@ -2789,8 +2804,9 @@ def entity() -> None: |
2789 | 2804 | @click.option( |
2790 | 2805 | "--name", |
2791 | 2806 | "-n", |
2792 | | - default="limiter", |
2793 | | - help="Stack identifier used as the CloudFormation stack name. Default: limiter", |
| 2807 | + default=DEFAULT_STACK_NAME, |
| 2808 | + show_default=True, |
| 2809 | + help="Stack identifier used as the CloudFormation stack name.", |
2794 | 2810 | ) |
2795 | 2811 | @click.option( |
2796 | 2812 | "--region", |
@@ -2868,8 +2884,9 @@ async def _create() -> None: |
2868 | 2884 | @click.option( |
2869 | 2885 | "--name", |
2870 | 2886 | "-n", |
2871 | | - default="limiter", |
2872 | | - help="Stack identifier used as the CloudFormation stack name. Default: limiter", |
| 2887 | + default=DEFAULT_STACK_NAME, |
| 2888 | + show_default=True, |
| 2889 | + help="Stack identifier used as the CloudFormation stack name.", |
2873 | 2890 | ) |
2874 | 2891 | @click.option( |
2875 | 2892 | "--region", |
@@ -2959,8 +2976,9 @@ async def _show() -> None: |
2959 | 2976 | @click.option( |
2960 | 2977 | "--name", |
2961 | 2978 | "-n", |
2962 | | - default="limiter", |
2963 | | - help="Stack identifier used as the CloudFormation stack name. Default: limiter", |
| 2979 | + default=DEFAULT_STACK_NAME, |
| 2980 | + show_default=True, |
| 2981 | + help="Stack identifier used as the CloudFormation stack name.", |
2964 | 2982 | ) |
2965 | 2983 | @click.option( |
2966 | 2984 | "--region", |
@@ -3060,8 +3078,9 @@ async def _set() -> None: |
3060 | 3078 | @click.option( |
3061 | 3079 | "--name", |
3062 | 3080 | "-n", |
3063 | | - default="limiter", |
3064 | | - help="Stack identifier used as the CloudFormation stack name. Default: limiter", |
| 3081 | + default=DEFAULT_STACK_NAME, |
| 3082 | + show_default=True, |
| 3083 | + help="Stack identifier used as the CloudFormation stack name.", |
3065 | 3084 | ) |
3066 | 3085 | @click.option( |
3067 | 3086 | "--region", |
@@ -3149,8 +3168,9 @@ async def _get() -> None: |
3149 | 3168 | @click.option( |
3150 | 3169 | "--name", |
3151 | 3170 | "-n", |
3152 | | - default="limiter", |
3153 | | - help="Stack identifier used as the CloudFormation stack name. Default: limiter", |
| 3171 | + default=DEFAULT_STACK_NAME, |
| 3172 | + show_default=True, |
| 3173 | + help="Stack identifier used as the CloudFormation stack name.", |
3154 | 3174 | ) |
3155 | 3175 | @click.option( |
3156 | 3176 | "--region", |
@@ -3244,8 +3264,9 @@ async def _delete() -> None: |
3244 | 3264 | @click.option( |
3245 | 3265 | "--name", |
3246 | 3266 | "-n", |
3247 | | - default="limiter", |
3248 | | - help="Stack identifier used as the CloudFormation stack name. Default: limiter", |
| 3267 | + default=DEFAULT_STACK_NAME, |
| 3268 | + show_default=True, |
| 3269 | + help="Stack identifier used as the CloudFormation stack name.", |
3249 | 3270 | ) |
3250 | 3271 | @click.option( |
3251 | 3272 | "--region", |
@@ -3326,8 +3347,9 @@ async def _list() -> None: |
3326 | 3347 | @click.option( |
3327 | 3348 | "--name", |
3328 | 3349 | "-n", |
3329 | | - default="limiter", |
3330 | | - help="Stack identifier used as the CloudFormation stack name. Default: limiter", |
| 3350 | + default=DEFAULT_STACK_NAME, |
| 3351 | + show_default=True, |
| 3352 | + help="Stack identifier used as the CloudFormation stack name.", |
3331 | 3353 | ) |
3332 | 3354 | @click.option( |
3333 | 3355 | "--region", |
@@ -3416,8 +3438,9 @@ def namespace() -> None: |
3416 | 3438 | @click.option( |
3417 | 3439 | "--name", |
3418 | 3440 | "-n", |
3419 | | - default="limiter", |
3420 | | - help="Stack identifier. Default: limiter", |
| 3441 | + default=DEFAULT_STACK_NAME, |
| 3442 | + show_default=True, |
| 3443 | + help="Stack identifier.", |
3421 | 3444 | ) |
3422 | 3445 | @click.option( |
3423 | 3446 | "--region", |
@@ -3481,8 +3504,9 @@ async def _register() -> None: |
3481 | 3504 | @click.option( |
3482 | 3505 | "--name", |
3483 | 3506 | "-n", |
3484 | | - default="limiter", |
3485 | | - help="Stack identifier. Default: limiter", |
| 3507 | + default=DEFAULT_STACK_NAME, |
| 3508 | + show_default=True, |
| 3509 | + help="Stack identifier.", |
3486 | 3510 | ) |
3487 | 3511 | @click.option( |
3488 | 3512 | "--region", |
@@ -3543,8 +3567,9 @@ async def _list() -> None: |
3543 | 3567 | @click.option( |
3544 | 3568 | "--name", |
3545 | 3569 | "-n", |
3546 | | - default="limiter", |
3547 | | - help="Stack identifier. Default: limiter", |
| 3570 | + default=DEFAULT_STACK_NAME, |
| 3571 | + show_default=True, |
| 3572 | + help="Stack identifier.", |
3548 | 3573 | ) |
3549 | 3574 | @click.option( |
3550 | 3575 | "--region", |
@@ -3607,8 +3632,9 @@ async def _show() -> None: |
3607 | 3632 | @click.option( |
3608 | 3633 | "--name", |
3609 | 3634 | "-n", |
3610 | | - default="limiter", |
3611 | | - help="Stack identifier. Default: limiter", |
| 3635 | + default=DEFAULT_STACK_NAME, |
| 3636 | + show_default=True, |
| 3637 | + help="Stack identifier.", |
3612 | 3638 | ) |
3613 | 3639 | @click.option( |
3614 | 3640 | "--region", |
@@ -3678,8 +3704,9 @@ async def _delete() -> None: |
3678 | 3704 | @click.option( |
3679 | 3705 | "--name", |
3680 | 3706 | "-n", |
3681 | | - default="limiter", |
3682 | | - help="Stack identifier. Default: limiter", |
| 3707 | + default=DEFAULT_STACK_NAME, |
| 3708 | + show_default=True, |
| 3709 | + help="Stack identifier.", |
3683 | 3710 | ) |
3684 | 3711 | @click.option( |
3685 | 3712 | "--region", |
@@ -3740,8 +3767,9 @@ async def _recover() -> None: |
3740 | 3767 | @click.option( |
3741 | 3768 | "--name", |
3742 | 3769 | "-n", |
3743 | | - default="limiter", |
3744 | | - help="Stack identifier. Default: limiter", |
| 3770 | + default=DEFAULT_STACK_NAME, |
| 3771 | + show_default=True, |
| 3772 | + help="Stack identifier.", |
3745 | 3773 | ) |
3746 | 3774 | @click.option( |
3747 | 3775 | "--region", |
@@ -3802,8 +3830,9 @@ async def _orphans() -> None: |
3802 | 3830 | @click.option( |
3803 | 3831 | "--name", |
3804 | 3832 | "-n", |
3805 | | - default="limiter", |
3806 | | - help="Stack identifier. Default: limiter", |
| 3833 | + default=DEFAULT_STACK_NAME, |
| 3834 | + show_default=True, |
| 3835 | + help="Stack identifier.", |
3807 | 3836 | ) |
3808 | 3837 | @click.option( |
3809 | 3838 | "--region", |
|
0 commit comments