apache / apache/openwhisk-cli

add quiet mode

Offen
#142 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
enhancement
Vorherrschende Sprache
Go
Sterne
109
Forks
98
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

@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

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Beginnen Sie mit der Verarbeitung der CLI-Ausgabe hinter `wsk property get --cliversion` und verfolgen Sie, wie die Zeilen `ok:` und `error:` erzeugt werden. Definieren Sie das Verhalten im Quiet-Modus und überprüfen Sie, dass die Property-Ausgabe diese Zeilen auslässt und zugleich für die Weiterverarbeitung geeignet bleibt; es werden keine bestimmten Dateien oder Tests genannt.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

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

Neue Issues direkt in Ihr Postfach

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