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

Please make maxChoices not a fixed number

Aperta
#3,398 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
go
Ambito
cli

Direzione di ricerca

Inizia leggendo cf/commands/login.go alla definizione referenziata di maxChoices e segui il modo in cui le scelte delle organizzazioni vengono visualizzate durante il login. Verifica se la v6 CLI dispone già di un percorso di configurazione per questo valore. Il lavoro è completo quando gli utenti possono vedere più di 50 organizzazioni senza inserire il nome esatto, mantenendo il comportamento di login esistente per gli altri utenti.

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

Descrizione

Please provide details on the following items. Failure to do so may result in deletion of your feature request.

What's the user value of this feature request?
Users can see more than 50 orgs after logging in.

Who is the functionality for?
Everyone having more than 50 orgs.

How often will this functionality be used by the user?
Every day.

Who else is affected by the change?
should not affect the majority of users.

Is your feature request related to a problem? Please describe.
Entering the exact org name is very tedious after having more than 50 entries, because you cant see them anymore.

Describe the solution you'd like
It should be possible to set maxChoices as a variable to increase it to e.g. 100 as a user.

Describe alternatives you've considered
Alternatively, if you want to hardcode it, just increase the maxChoices.

Additional context
Its currently hardcoded to 50. See here:
https://github.com/cloudfoundry/cli/blob/8ca11b656297aca2da6376da2345f0e190d27924/cf/commands/login.go#L24

Note:
As of the GA of the v7 CLI, the v6 line is no longer under active development and will be updated only to patch CVEs or fix severe blocking defects with no workarounds.

Lingua principale
Go
Stelle
1.9k
Fork
990
Merge medio
1g 7h
PR unite (30g)
8

Guida per i contributori

Apri la guida per i contributori

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 cloudfoundry/cli

Tutte le issue di cloudfoundry/cli

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.