Gprclean / Clean Build Workspace
Clean Build Workspace
Gprclean command syntax to clean build workspace. Copyable examples, output expectations, and common mistakes.
$
Terminal gprclean gprclean #!/bin/bash
# Clean Build Workspace
gprclean import subprocess
# Clean Build Workspace
# Make sure to replace <placeholders> with actual values
def run_command():
cmd = [
"gprclean",
]
try:
print(f"Executing: {' '.join(cmd)}")
subprocess.run(cmd, check=True)
except subprocess.CalledProcessError as e:
print(f"Error: {e}")
except FileNotFoundError:
print("Error: gprclean not found. Please install it first.")
if __name__ == "__main__":
run_command() Command Breakdown
What each part is doing
-
gprclean - Base Command
- The executable that performs this operation. Here it runs Gprclean before the shell applies any redirect operators.