Add completions for 'lake' and 'lean' for Fish

Open
#223 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
58/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
fish, rust
Domain
cli

Research direction

Start by reading the elan completions fish command implementation and its tests; the issue does not name the relevant files. Check how completion generation chooses command names for elan, then determine whether it can also generate completions for lake and lean. Done when the listed Fish setup commands work for all three names.

Written by the indexing model from the issue text.

Description

The following should work inside Fish.

echo 'elan completions fish | source' > ~/.config/fish/completions/elan.fish
echo 'elan completions fish | source' > ~/.config/fish/completions/lake.fish
echo 'elan completions fish | source' > ~/.config/fish/completions/lean.fish

I don't know how to implement it in elan.

Dominant language
Rust
Stars
719
Forks
62
Avg merge
13m
Merged PRs (30d)
2

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from leanprover/elan

All issues in leanprover/elan

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.