11 lines
315 B
Python
11 lines
315 B
Python
import subprocess
|
|
import sys
|
|
|
|
def list_partitions(*args):
|
|
result = subprocess.run(['ogListPartitions'] + list(args), capture_output=True, text=True)
|
|
output = result.stdout
|
|
cleaned_output = output.rstrip('EMPTY:0 ')
|
|
print(cleaned_output)
|
|
|
|
if __name__ == "__main__":
|
|
list_partitions(*sys.argv[1:]) |