29 lines
376 B
Python
29 lines
376 B
Python
# -*- mode: python -*-
|
|
|
|
from flowmetal import workflow
|
|
|
|
|
|
def ingest():
|
|
return {}
|
|
|
|
|
|
def analyze(data):
|
|
return data.keys()
|
|
|
|
|
|
def check(keys) -> bool:
|
|
return len(keys) > 0
|
|
|
|
|
|
def report(keys):
|
|
print(keys)
|
|
|
|
|
|
@workflow
|
|
def main():
|
|
data = ingest()
|
|
data = analyze(data)
|
|
if check(data):
|
|
report(data)
|
|
else:
|
|
raise ValueError(report(data))
|