29 lines
1006 B
Python
29 lines
1006 B
Python
#!/usr/bin/python3
|
|
"""Explicit data-only C01 history operation inside reviewed root confinement.
|
|
|
|
No service transition, key generation, path relocation, time authorization or
|
|
application activation is performed. Configuration and approvals are root-owned
|
|
content-addressed appointments. Incomplete imports are never retried/reset here.
|
|
"""
|
|
import argparse
|
|
import json
|
|
import c01_provision
|
|
|
|
|
|
def main():
|
|
parser = argparse.ArgumentParser(description=__doc__)
|
|
commands = parser.add_subparsers(dest='operation', required=True)
|
|
commands.add_parser('inspect')
|
|
importer = commands.add_parser('import-legacy')
|
|
importer.add_argument('--approval', required=True, help='SHA256 of reviewed root migration appointment')
|
|
args = parser.parse_args()
|
|
if args.operation == 'inspect':
|
|
result = c01_provision.run(inspect=True)
|
|
else:
|
|
result = c01_provision.run(legacy_approval=args.approval)
|
|
print(json.dumps(result, sort_keys=True))
|
|
|
|
|
|
if __name__ == '__main__':
|
|
main()
|