Compare commits
No commits in common. "1712650d4aaab28e51c7f664899b5450643adb23" and "bf680f273330fd965ac2b3aa72cb12dfc13375de" have entirely different histories.
1712650d4a
...
bf680f2733
2 changed files with 17 additions and 19 deletions
|
|
@ -405,31 +405,29 @@ if __name__ == '__main__':
|
||||||
if arguments.subcommand is None:
|
if arguments.subcommand is None:
|
||||||
policy_parser.print_help()
|
policy_parser.print_help()
|
||||||
|
|
||||||
else:
|
policy = PolicyController.get(arguments.policy)
|
||||||
|
|
||||||
policy = PolicyController.get(arguments.policy)
|
if policy is not None:
|
||||||
|
|
||||||
if policy is not None:
|
if arguments.subcommand == 'preview':
|
||||||
|
print(PolicyController.preview(policy))
|
||||||
|
|
||||||
if arguments.subcommand == 'preview':
|
elif arguments.subcommand == 'instate':
|
||||||
print(PolicyController.preview(policy))
|
PolicyController.instate(policy)
|
||||||
|
|
||||||
elif arguments.subcommand == 'instate':
|
elif arguments.subcommand == 'inspect':
|
||||||
PolicyController.instate(policy)
|
|
||||||
|
|
||||||
elif arguments.subcommand == 'inspect':
|
if PolicyController.is_instated(policy):
|
||||||
|
pprint.pp({'status': 'Instated'})
|
||||||
|
|
||||||
if PolicyController.is_instated(policy):
|
elif PolicyController.is_suggestible(policy):
|
||||||
pprint.pp({'status': 'Instated'})
|
pprint.pp({'status': 'Suggested'})
|
||||||
|
|
||||||
elif PolicyController.is_suggestible(policy):
|
else:
|
||||||
pprint.pp({'status': 'Suggested'})
|
pprint.pp({'status': 'Uninstated'})
|
||||||
|
|
||||||
else:
|
elif arguments.subcommand == 'revoke':
|
||||||
pprint.pp({'status': 'Uninstated'})
|
PolicyController.revoke(policy)
|
||||||
|
|
||||||
elif arguments.subcommand == 'revoke':
|
|
||||||
PolicyController.revoke(policy)
|
|
||||||
|
|
||||||
elif arguments.command == 'get':
|
elif arguments.command == 'get':
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
[project]
|
[project]
|
||||||
name = "sp-hydra-veil-cli"
|
name = "sp-hydra-veil-cli"
|
||||||
version = "2.1.0"
|
version = "2.0.0"
|
||||||
authors = [
|
authors = [
|
||||||
{ name = "Simplified Privacy" },
|
{ name = "Simplified Privacy" },
|
||||||
]
|
]
|
||||||
|
|
@ -12,7 +12,7 @@ classifiers = [
|
||||||
"Operating System :: POSIX :: Linux",
|
"Operating System :: POSIX :: Linux",
|
||||||
]
|
]
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"sp-hydra-veil-core == 2.1.0",
|
"sp-hydra-veil-core == 2.0.0",
|
||||||
]
|
]
|
||||||
|
|
||||||
[project.urls]
|
[project.urls]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue