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

New --nested switch for alr show #1333

Merged
merged 4 commits into from
Feb 24, 2023
Merged

Conversation

mosteo
Copy link
Member

@mosteo mosteo commented Feb 22, 2023

Shows a summary of crates found under the current directory. The purpose is to raise awareness of demos, tests, examples, etc. in the crates, but it may also come in handy to locate local crates in general.

Example in my dev folder:

$ alr show --nested
ⓘ Found 80 nested crates in /home/user/prog:
   ...
   wordle_ada/wordle=0.1.0: Wordle for the terminal
   wordlist_ada/wordlist=0.1.3: An English word list
   wordlist_ada/demo/demo=0.1.0-dev: Shiny new project
   yeison/yeison=0.1.0-dev: A JSON-like data structure using Ada 2022 features
   yeison/demo/demo=0.0.0: Shiny new project
$ cd wordlist_ada/
$ alr show --nested
ⓘ Found 1 nested crate in /home/user/prog/wordlist_ada:
   demo/demo=0.1.0-dev: Shiny new project

Automatically invoked after alr get and alr with when interactive:

$ cd /tmp
$ alr get ansiada
ⓘ Deploying ansiada=1.0.0...
ansiada=1.0.0 successfully retrieved.
ⓘ Found 1 nested crate in /tmp/ansiada_1.0.0_dc770a5a:
   demo/demo=0.1.0-dev: Ansiada demo
There are no dependencies.

@mosteo mosteo marked this pull request as ready for review February 22, 2023 19:35
@mosteo mosteo merged commit 40c25f1 into alire-project:master Feb 24, 2023
@mosteo mosteo deleted the feat/nested-info branch February 24, 2023 11:54
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.

None yet

2 participants