microcks / microcks/microcks-cli

feat: add config show command for active microcks context

Aperta
#368 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Lingua principale
Go
Stelle
52
Fork
68
Merge medio
6h 54m
PR unite (30g)
10

Descrizione

the cli stores microcks connection details in the local config, but there is no simple command that shows what the active context currently points to. when debugging `microcks import`, `microcks test`, or local tooling that connects to microcks, users currently have to inspect the raw config file manually to confirm the current context, server url, tls setting, and whether auth credentials are present.

a `microcks config show` command would make that state visible from the cli without exposing secrets. the default output could print a small table with the current context name, server url, insecure tls setting, whether an auth token is present, whether a refresh token is present, and linked local instance information if the context has one.

example:

```bash
microcks config show
```

```text
current context server insecure tls auth token instance
local http://localhost:8585 false present microcks
```

the first version can stay focused: add a `config show` command under `cmd/`, reuse the existing local config loading and context resolution code, mask token values instead of printing them, add tests with temporary config fixtures, and update command documentation.

this also supports the vs code integration work in #255 because editor tooling needs an easy way for users to confirm which microcks instance their local environment is configured to use.

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.

Direzione di ricerca

Inizia sotto cmd/ tracciando il caricamento della configurazione locale esistente e la risoluzione del contesto utilizzati dalla CLI. Aggiungi l’entry point di config show ed esamina i test delle fixture di configurazione temporanee per coprire il contesto, l’URL del server, TLS, la presenza del token, la presenza del refresh-token e i dettagli dell’istanza collegata senza stampare segreti. Aggiorna la documentazione del comando quando l’output e i test sono completi.

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

Valutazione

Stack tecnologico
go
Ambito
cli, tooling
Tipo di issue
Funzionalità
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Tranquilla
Chiarezza
Abbastanza chiara
Idoneità per principianti
72/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.