Skip to content
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

Enhance completion at non-interactive mode #1391

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix: main: Set PATH environment first
Otherwise, non-interactive commands like `crm configure property` will
not produce completion results.
  • Loading branch information
liangxin1300 committed Apr 17, 2024
commit 0e3e28ca2bb0d31e7bbd62e8fdf70d177bb445c7
2 changes: 1 addition & 1 deletion crmsh/main.py
Original file line number Diff line number Diff line change
@@ -345,10 +345,10 @@ def profile_run(context, user_args):

def run():
try:
envsetup()
if len(sys.argv) >= 2 and sys.argv[1] == '--compgen':
compgen()
return 0
envsetup()
userdir.mv_user_files()

ui = ui_root.Root()