Skip to content

Commit d468f5a

Browse files
author
Bob Strahan
committed
Add --clean-build option to generate_govcloud_template.py script
1 parent 81e1b86 commit d468f5a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

scripts/generate_govcloud_template.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -855,6 +855,9 @@ def main():
855855
# With verbose output and concurrency control
856856
python scripts/generate_govcloud_template.py my-bucket my-prefix us-east-1 --verbose --max-workers 4
857857
858+
# With clean build (forces full rebuild)
859+
python scripts/generate_govcloud_template.py my-bucket my-prefix us-east-1 --clean-build
860+
858861
# Public artifacts
859862
python scripts/generate_govcloud_template.py my-bucket my-prefix us-east-1 public
860863
"""
@@ -868,6 +871,7 @@ def main():
868871
parser.add_argument('--max-workers', type=int, help='Maximum number of concurrent workers')
869872
parser.add_argument('--verbose', '-v', action='store_true', help='Enable verbose output')
870873
parser.add_argument('--skip-build', action='store_true', help='Skip the build step and only generate/upload GovCloud template')
874+
parser.add_argument('--clean-build', action='store_true', help='Delete all .checksum files to force full rebuild')
871875

872876
# Parse known args to handle the flexible argument structure
873877
args, unknown = parser.parse_known_args()
@@ -884,6 +888,9 @@ def main():
884888
if args.verbose:
885889
publish_args.append('--verbose')
886890

891+
if args.clean_build:
892+
publish_args.append('--clean-build')
893+
887894
# Add any unknown arguments
888895
publish_args.extend(unknown)
889896

0 commit comments

Comments
 (0)