Fix config inconsistency (#609)

* Plural/singular confusion in config key

* Flow class vs flow blueprint nomenclature change

* Update docs & CLI to reflect the above
This commit is contained in:
cybermaggedon 2026-01-14 12:31:40 +00:00 committed by GitHub
parent 99f17d1b9d
commit b08db761d7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
36 changed files with 816 additions and 814 deletions

View file

@ -0,0 +1,51 @@
"""
Deletes a flow blueprint
"""
import argparse
import os
import tabulate
from trustgraph.api import Api
import json
default_url = os.getenv("TRUSTGRAPH_URL", 'http://localhost:8088/')
def delete_flow_blueprint(url, blueprint_name):
api = Api(url).flow()
blueprint_names = api.delete_blueprint(blueprint_name)
def main():
parser = argparse.ArgumentParser(
prog='tg-delete-flow-blueprint',
description=__doc__,
)
parser.add_argument(
'-u', '--api-url',
default=default_url,
help=f'API URL (default: {default_url})',
)
parser.add_argument(
'-n', '--blueprint-name',
help=f'Flow blueprint name',
)
args = parser.parse_args()
try:
delete_flow_blueprint(
url=args.api_url,
blueprint_name=args.blueprint_name,
)
except Exception as e:
print("Exception:", e, flush=True)
if __name__ == "__main__":
main()