Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Ultra Portable Scripts for fish

Đang mở
#1,204 3 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
25/100
Loại issue
Tính năng
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
fish
Lĩnh vực
cli

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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?

Ngôn ngữ chính
Rust
Star
9.9k
Fork
1.4k
Merge trung bình
1 ngày 17 giờ
Pull request đã merge (30 ngày)
1

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của pkgxdev/pkgx

Tất cả issue của pkgxdev/pkgx

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.