-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add click-compatible kerberos command #1499
Add click-compatible kerberos command #1499
Conversation
@blag Please review this PR at your earliest convenience. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks really good, just one small, nice-to-have fixup.
airflow/cli/commands/kerberos.py
Outdated
@click.option("-k", "--keytab", metavar="KEYTAB", help="keytab", default=conf.get("kerberos", "keytab")) | ||
def kerberos(principal, stdout, stderr, pid, daemon_, log_file, keytab): | ||
"""Start a kerberos ticket renewer""" | ||
print(settings.HEADER) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
print(settings.HEADER) | |
from rich.console import Console | |
console = Console() | |
console.print(settings.HEADER) |
Ideally all output would flow through rich.console.Console
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for all of the work you've done for this. From this discussion, there is more groundwork and research necessary before we can evaluate rewriting the CLI with Click. |
Related: apache#22708
Summary
This PR adds click-compatible
kerberos
command.Todo:
Screenshots (before/after)