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

Installing shell completion for a just manage script fails. #190

Open
bckohan opened this issue Mar 10, 2025 · 1 comment
Open

Installing shell completion for a just manage script fails. #190

bckohan opened this issue Mar 10, 2025 · 1 comment
Assignees
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Milestone

Comments

@bckohan
Copy link
Member

bckohan commented Mar 10, 2025

[script("python")]
manage *COMMAND:
    import os
    import sys
    import shlex
    from pathlib import Path
    from django.core import management
    management.execute_from_command_line(sys.argv + shlex.split('{{ COMMAND }}'))

This should work:

just manage shellcompletion install '--manage-script="just manage"'

@bckohan bckohan self-assigned this Mar 10, 2025
@bckohan bckohan added documentation Improvements or additions to documentation enhancement New feature or request labels Mar 10, 2025
@bckohan
Copy link
Member Author

bckohan commented Mar 10, 2025

blocked by #191

@bckohan bckohan added this to the 3.1 milestone Mar 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant