Comments (12)
Здравствуйте ! Идея понятна. Можно было бы добавить это в текущую реализацию флага silent, но вот что делать, если при выполнении плагина будут ошибки , например ненулевой код заверешения сценария истории или ошибки валидация в проверочном файле , то в этом случае что делать ? Выводить сообщения об ошибках или нет ?
from sparrow.
Мне кажется, для простоты, даже при ошибках не надо ничего выводить.
Возможно, в будущем, если надо будет, то можно сделать флаг --show-errors, который будет применятся вместе с первым, чтобы выводить ошибки, если они произойдут.
from sparrow.
Ок, я думаю я добавлю отдельную опцию запуска sparrow клиента --format $format которая будет настраивать вид отчёта. Например для случая можно было бы сказать так :
--format concise # сжатый формат , не ввыводить служебные сообщения sparrow ...
Что думаете ?
from sparrow.
Да, так будет неплохо.
from sparrow.
Попробуйте.
$ sparrowdo --module_run=Sparrow::Update ...
# или
$ cpanm https://github.com/melezhik/outthentic.git
$ cpanm https://github.com/melezhik/sparrow.git
Далее :
$ sparrow plg run df-check --format concise
$ sparrow task run disk/check --format concise
$ sparrow box run /path/to/box.json --format concise
from sparrow.
Попробовал. Насколько я понял, этот режим немного сжимаете вывод, но не полностью. Планируется ли еще тип формата, кроме default и concise?
from sparrow.
Напишите , что бы вы хотели ещё убрать. Может быть в этом формате сделаем.
from sparrow.
Как стало.
[spigell@dev1 ~]$ sparrow plg run bash --param command="'echo jasfdjj'" --format concise
[p] bash
@ runs bash command
[p] bash modules/bash-command/ params: envvars: at 2017-04-01 22:05:59
jasfdjj
STATUS SUCCEED
Как было:
[spigell@dev1 ~]$ sparrow plg run bash --param command="'echo jasfdjj'"
[p] bash
@ runs bash command
[p] bash modules/bash-command/ params: envvars: at 2017-04-01 22:06:04
jasfdjj
ok scenario succeeded
STATUS SUCCEED
То есть насколько я вижу, убираются только проверки.
Хотелось бы, чтобы убиралось вся служебная информация от sparrow. В первом посте есть описание. Возможно стоит сделать еще один тип ("none" или "silent")
from sparrow.
Да, я вас понял, посмотрим, есть ли смысл вводить еще один формат, или можно все это реализовать в рамках --format concise
. Надо подумать.
from sparrow.
Добавил в --format concise
, пробуйте
from sparrow.
$ sparrow plg run bash --param command="'echo jasfdjj'" --format concise
jasfdjj
from sparrow.
Здравствуйте. Работает как нужно.
Спасибо.
from sparrow.
Related Issues (20)
- plg man for private plugins HOT 3
- sparrow-sshtule plugins hangs HOT 22
- dependencies for bash and python plugins. HOT 28
- Sparrow task configuration HOT 6
- Issue with remote tasks HOT 1
- Sparrow doesn't get all string of parameters, but strun does HOT 4
- Problem with sparrow.list HOT 14
- Changing all sparrow plugins to be compatible with Outthentic >= 0.3.0 HOT 5
- Add changes log on Sparrowhub HOT 2
- Pre-install tasks for plg install HOT 1
- add parameter supported_os in sparrow.json
- Docs about sparrow.yaml
- Update bootstrap script. Sparrowhub.org HOT 1
- Add yaml support for boxes HOT 5
- Incompatible with perl 5.26 ~ HOT 3
- SparrowHub trouble HOT 1
- Request for python support HOT 6
- sshd-check plugin doesn't work now HOT 2
- logging in sparrow client HOT 29
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sparrow.