apache / apache/openwhisk-cli

add quiet mode

Aperta
#142 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
enhancement
Lingua principale
Go
Stelle
109
Fork
98
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

@dubeejw commented on [Wed Mar 22 2017](https://github.com/apache/incubator-openwhisk/issues/2062)

CLI code is hard to read as the externalized string package being used requires a map of keys and values. This process should be abstracted to make the code more readable.

---

@dubeejw commented on [Wed Mar 22 2017](https://github.com/apache/incubator-openwhisk/issues/2062#issuecomment-288584469)

@csantanapr, @mdeuser, this is technical debt, and should be fixed ASAP.

---

@csantanapr commented on [Thu Mar 23 2017](https://github.com/apache/incubator-openwhisk/issues/2062#issuecomment-288710525)

Looking forward to a PR :)

---

@rabbah commented on [Thu Mar 23 2017](https://github.com/apache/incubator-openwhisk/issues/2062#issuecomment-288711448)

As part of doing this, consider: adding quiet mode which omits "ok:" and "error:" lines so that raw Json responses are more amenable to post processing.

---

@markusthoemmes commented on [Thu Mar 23 2017](https://github.com/apache/incubator-openwhisk/issues/2062#issuecomment-288724315)

Alternatively: `--json` or `--raw` to explicitly make the output machine-readable?

---

@dubeejw commented on [Thu Mar 23 2017](https://github.com/apache/incubator-openwhisk/issues/2062#issuecomment-288739227)

@markusthoemmes, @rabbah, a flag like `--raw` would be accomplished through this issue: https://github.com/openwhisk/openwhisk/issues/2064.

---

@akrabat commented on [Wed Apr 12 2017](https://github.com/apache/incubator-openwhisk/issues/2062#issuecomment-293527983)

A quiet mode would be handy for property get too. That way I wouldn't need to do this:

wsk property get --cliversion | rev | cut -f1 | rev

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Iniziate dalla gestione dell’output della CLI alla base di `wsk property get --cliversion` e tracciate il modo in cui vengono prodotte le righe `ok:` e `error:`. Definite il comportamento della modalità silenziosa e verificate che l’output della proprietà ometta tali righe rimanendo al contempo adatto alla post-elaborazione; non vengono indicati file o test specifici.

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

Valutazione

Stack tecnologico
go
Ambito
cli
Tipo di issue
Funzionalità
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.