Add option to output autocomplete into stdout

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

Maintainer thường phản hồi trong vòng 1 ngày

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

Đánh giá

Độ khó
3/5
Thời gian dự kiến
Nửa ngày
Mức phù hợp với người mới
55/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
fish, python
Lĩnh vực
cli

Hướng nghiên cứu

The request centres on the existing b2 install-autocomplete command, which writes completion scripts into the user's shell config. Find where that command is implemented and how it selects the fish shell. The goal is a --stdout flag, or a completion <shell> subcommand, that prints the same script to stdout without touching any files. Done when the output can be piped into a fish completions directory and the existing install behaviour is unchanged.

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

Mô tả

enhancement

I do not like when third party tools edit my configuration files. I would love to have something like:

$ b2 install-autocomplete --shell fish --stdout
# or
$ b2 completion fish

Similar to other tools, such as:

$ docker completion fish
$ mise completion fish
$ pnpm completion fish

Thank you.

Ngôn ngữ chính
Python
Star
638
Fork
138
Merge trung bình
8 giờ 27 phút
Pull request đã merge (30 ngày)
8

Chuẩn bị môi trường

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 Backblaze/B2_Command_Line_Tool

Tất cả issue của Backblaze/B2_Command_Line_Tool

Issue tương tự

Thêm issue về Python

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.