<#3919 [FlyteCTL Feature] add a --output flag for ...
# flyte-github
a
#3919 [FlyteCTL Feature] add a --output flag for pyflyte register Issue created by zeryx Describe the feature/command for FlyteCTL pyflyte register today does not have any mechanism for providing an organized output containing the registered workflow/task/launchplan names, and their versions. This request would be to provide a --output=X flag that can denote how the output should be formatted. This could be by default =json, and =yaml. Provide a possible output or UX example I should be able to run
pyflyte register --remote somewf_dir --output=json
and the following output.json file should exist in the repo
Copy code
[{"type":"workflow", "name":"<http://somewf_dir.workflow_file.wf|somewf_dir.workflow_file.wf>", "version":"abcd123"}, {"type":"task", "name":"somewf_dir.workflow_file.task_a", "version":"abcd123"}]
Are you sure this issue hasn't been raised already? ☑︎ Yes Have you read the Code of Conduct? ☑︎ Yes flyteorg/flyte