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

Added custom completions for loco and cargo loco commands #1029

Merged
merged 1 commit into from
Jan 30, 2025

Conversation

andreystepanov
Copy link
Contributor

@andreystepanov andreystepanov commented Jan 30, 2025

Sharing custom completions I've written for myself with the community, especially those interested in Loco framework (It’s Like Ruby on Rails, but for Rust).

At this point it already auto-completes:

  • environment (based on config/*.yaml filenames)
  • task names (currently based on src/tasks/*.rs filenames)
  • scheduler job names/tags (parsed from scheduler section of config/*.yaml, and it's aware of current --environment flag)
  • model fields, after you typed field: and then pressed Tab key (field:uuid, field:string!, field:tstz! etc.)
  • template names (for cargo loco generate override subcommand)
  • and others

@fdncred fdncred merged commit 10b2262 into nushell:main Jan 30, 2025
1 check passed
@fdncred
Copy link
Collaborator

fdncred commented Jan 30, 2025

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants