Azure / Azure/CosmosDBShell

[P1] Add Saved Connection Profiles

Đang mở
#104 8 bình luận 0 reaction 0 người được giao Xem trên GitHub
enhancement
Ngôn ngữ chính
C#
Star
3
Fork
7
Merge trung bình
1 ngày 9 giờ
Pull request đã merge (30 ngày)
18

Mô tả

## Feature Request

**Priority:** P1 (High)

### Description

CosmosDB Shell has no way to save, list, or switch between named connection profiles. Power users managing multiple accounts/environments must re-type connection strings each time.

### Comparable Features in Other Shells

- **sqlcmd**: `sqlcmd config` subcommands (`config view`, `config use-context`)

### Proposed Behavior

Add a `profile` or `config` command:
- `profile save ` — Save current connection as a named profile
- `profile list` — List saved profiles
- `profile use ` — Connect using a saved profile
- `profile delete ` — Remove a saved profile
- Store profiles securely (credential store integration or encrypted file)

### Example Usage

```
connect --connect "AccountEndpoint=..." --connect-mode direct
profile save prod-account

profile list
profile use dev-account
```

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

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Bắt đầu bằng cách xem xét lệnh connect hiện có và các điểm vào xử lý lệnh của shell, sau đó so sánh các luồng được đề xuất để lưu, liệt kê, sử dụng và xóa profile. Hãy xác định cách thức lưu trữ thông tin xác thực an toàn trước khi triển khai. Công việc được xem là hoàn tất khi có thể lưu, liệt kê, chọn và xóa các profile có tên mà không cần nhập lại các chuỗi kết nối.

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

Đánh giá

Công nghệ
csharp
Lĩnh vực
cli, security
Loại issue
Tính năng
Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức độ hoạt động
Ít trao đổi
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
35/100

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.