github / github/copilot-cli

Add `--user` to copilot argument

Offen
#3,169 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
area:authentication area:configuration
Vorherrschende Sprache
Shell
Sterne
11.2k
Forks
1.9k
Ø Merge
14 Std. 16 Min.
Gemergte PRs (30 T.)
6

Beschreibung

### Describe the feature or problem you'd like to solve

I'd like to be able to specify which user I want to use for the session as I have both work and personal accounts

### Proposed solution

If you have a script that puts in all the startup values you like by default, would be nice to have an ability to also specify the user/account that the session should start up in. Kind of annoying to have to later specify the user via `/user`.

### Example prompts or workflows

I have a powershell alias `cs` that launches copilot with a few args like `--yolo` and a few other fields. I'd like to also be able to pass a flag like `-Personal` or `-Work` to force it to use a specific account for the new session (so I don't forget and spend personal on work or vice versa). Just relying on the last one launched gets tricky because sometimes I forget and in the morning when I get to work and I forget to switch back to work account.

### Additional context

_No response_

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Es werden keine Dateien oder Tests genannt. Beginne damit, die CLI-Argumentanalyse und den bestehenden Ablauf zur Kontenauswahl über `/user` zu finden; verfolge anschließend, wie das ausgewählte Konto eine neue Sitzung erreicht. Erledigt ist die Aufgabe, wenn ein Startup-Flag zuverlässig das angeforderte Konto auswählt, während das bestehende Verhalten unverändert bleibt und die Option auffindbar ist.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
powershell
Bereich
cli
Issue-Typ
Feature
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Ruhig
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
48/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.