Jose Diaz-Gonzalez
fddf130abd
fix: add missing clone/rename setup code for golang plugins
2021-10-09 23:49:46 -04:00
Jose Diaz-Gonzalez
d55e34a55f
refactor: use LogFailWithError to allow a unified exit code for golang commands when the app is missing
2021-02-28 15:20:46 -05:00
Jose Diaz-Gonzalez
d09a7506df
refactor: bubble up error handling so that standard exit codes can be set at the top-level
...
LogFail shouldn't be called internally if at all possible.
2021-02-28 15:20:46 -05:00
Jose Diaz-Gonzalez
033b0952dd
feat: allow formatting :report command output as json
2021-02-01 22:23:30 -05:00
Jose Diaz-Gonzalez
3d4205b206
fix: drop unused flag introduced by logs max-size feature
2021-01-23 18:29:11 -05:00
Jose Diaz-Gonzalez
815b839eeb
feat: add trigger for fetching logs properties
2021-01-23 13:39:29 -05:00
Jose Diaz-Gonzalez
afe1e8b33c
refactor: use log:set for logs and add global support
2021-01-23 12:45:05 -05:00
Jose Diaz-Gonzalez
eda71e3ffe
feat: mirror log tailing support for logs:vector-logs command
2021-01-07 01:43:55 -05:00
Jose Diaz-Gonzalez
b186d9d66c
docs: fix help output
2021-01-07 01:42:51 -05:00
Jose Diaz-Gonzalez
666bb9dfee
fix: unscope err for report subcommands
2021-01-07 01:12:50 -05:00
Jose Diaz-Gonzalez
43d6a2ad94
feat: add ability to set a global vector sink
2021-01-04 01:11:49 -05:00
Jose Diaz-Gonzalez
fd85b1f605
feat: add vector integration
...
This currently is missing a few features:
- global sinks
- logrotation
But works fairly well otherwise.
2021-01-04 00:30:22 -05:00
Jose Diaz-Gonzalez
4d0979bbcd
fix: properly parse flags for logs command
...
Closes #4256
2020-12-21 16:50:34 -05:00
Jose Diaz-Gonzalez
8240790381
fix: correct argument handling when setting the --app flag
...
When setting the `--app` flag, there was a special case for the config plugin. This plugin used to take the `--no-restart` flag as the first argument - and still did until this change - resulting in an invalid call to the plugin subcommands. What is worse is that this functionality carried over to all other plugins as they were rewritten in golang, and thus the issue spread without us knowing.
The fix is to support GNU flag parsing rules, which Golang does not do by default (Because Of Reasons™). Switching to `github.com/spf13/pflag` fixes this issue, and also allows positional arguments to be placed wherever, even in the middle of flags.
Closes #4255
2020-12-20 22:06:33 -05:00
Jose Diaz-Gonzalez
7cdc68a007
refactor: use framework for running function against all apps
2020-11-22 15:01:36 -05:00
Jose Diaz-Gonzalez
1d93246af8
chore: formatting
2020-11-22 15:01:36 -05:00
Jose Diaz-Gonzalez
abce952d0f
fix: correct help output
2020-11-22 15:01:36 -05:00
Jose Diaz-Gonzalez
0b30bc8034
chore: formatting
2020-11-22 15:01:36 -05:00
Jose Diaz-Gonzalez
9882c94eec
fix: add missing help output
2020-11-22 15:01:36 -05:00
László Görög
9a02f3f1dc
refactor: transition logs plugin to go
2020-11-22 15:01:36 -05:00