Skip to content

Commit

Permalink
feat(cli): Eagerly load datahub actions CLI commands (datahub-project…
Browse files Browse the repository at this point in the history
  • Loading branch information
jjoyce0510 authored and maggiehays committed Aug 1, 2022
1 parent 1e534f0 commit 754aa23
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions metadata-ingestion/src/datahub/entrypoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,15 @@ def init() -> None:
datahub.add_command(telemetry_cli)
datahub.add_command(migrate)
datahub.add_command(timeline)
try:
import datahub_actions

datahub.add_command(datahub_actions.cli.actions)
except ImportError:
# TODO: Increase the log level once this approach has been validated.
logger.debug(
"Failed to load datahub actions framework. Please confirm that the acryl-datahub-actions package has been installed from PyPi."
)


def main(**kwargs):
Expand Down

0 comments on commit 754aa23

Please sign in to comment.