Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Ultra Portable Scripts for fish

Aperta
#1,204 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
fish
Ambito
cli

Direzione di ricerca

Read the linked pkgx Ultra Portable Scripts documentation and compare its shell behavior with the fish function example in this issue. Determine whether an equivalent fish invocation can support top-level local dependencies, and define completion as a documented, working approach for the shown alias pattern.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

I really like this part of pkgx: https://docs.pkgx.sh/pkgx/scripting#ultra-portable-scripts

And while I do prefer writing bash for scripts, I use fish as my terminal shell.

So I'd like to be able to do the following when implementing my fish aliases/functions:

function xc
    eval "$(pkgx +aria2c@latest +xcodes@latest)" # whatever the equivalent of this is in fish

    if test (count $argv) -ge 2; and test $argv[1] = runtimes; and test $argv[2] = install
        sudo xcodes $argv
    else
        xcodes $argv
    end
end

Effectively, I want to be able to declare all my local function dependencies at the very top and not have to worry about how to invoke them throughout my implemention.

Is this feasable?

Lingua principale
Rust
Stelle
9.9k
Fork
1.4k
Merge medio
1g 17h
PR unite (30g)
1

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di pkgxdev/pkgx

Tutte le issue di pkgxdev/pkgx

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.