Commit Graph
245 Commits
Author SHA1 Message Date
Mike Auty 4452f5c93d CLI: Actually populate the render options 2021-01-01 11:03:39 +00:00
Mike Auty 64c139095f Renderers: Add in very rudimentary renderer options
This allows the CLI to expose options that the renderers can offer.
These options are limited (string, int, bool and bytes), so no lists
or choices, etc.

Each renderer's options are also global options, meaning they're always
present (although grouped).  There's two ways of handling this:

a) Prefix each option with the renderer's name, duplicate options are
unique
b) Deduplicate options with duplicate names and prefix 'renderer'

The current choice is a) because b) might confuse people that an option
which only applied to one renderer would be available for all, but
comes with the inconvenience that users must adapt the option name for
those that are duplicated with the same meaning.

This is at least functional and extendable in the future but still a bit
clunky.  We could have brought the entire configuration mechanism into
play, but each renderer would require a context and a config_path and
so on, meaning massive overkill and a non-addition-only API change.
2020-11-01 22:51:39 +00:00
Mike Auty 5aa67d12af Volshell: More fixes for framework 2.0.0 2020-10-29 09:43:16 +00:00
Mike Auty e99706384c Volshell: Bump required framework version 2020-10-29 09:43:16 +00:00
Mike Auty 29cb430a72 Codebase: Apply yapf clean-up across the codebase 2020-10-29 09:43:16 +00:00
Mike Auty eaa0d2cd9d Windows: Tweak temporary filename 2020-10-29 09:43:16 +00:00
Mike Auty 13ad8efb52 Windows: Include direct access CLI file output 2020-10-29 09:43:16 +00:00
Mike Auty b703210024 Windows: Refactor names of FileInterfaces 2020-10-29 09:43:16 +00:00
Mike Auty 7cadbf32d4 Windows: Update dumping code from commit to close 2020-10-29 09:43:16 +00:00
Mike Auty e8fb8c929c Plugins: Introduce FileHandlerInterface 2020-10-29 09:43:16 +00:00
Andrew Caseandikelos 23e6516cd3 Add missing commas to cli warnings so they appear across newlines in output 2020-09-13 01:38:57 +01:00
AsafEitaniandikelos 7ab72a1066 yapf and some corrections 2020-08-31 17:05:20 +01:00
Mike Auty e75571ffad CLI: Revert epilog changes 2020-08-23 21:32:27 +01:00
Mike Auty dd21472a96 CLI: Add additional help about 'vol.py plugin --help' 2020-08-23 21:32:27 +01:00
Mike Auty 438b3d1f44 CLI: Improve hex bytes output 2020-08-23 21:24:58 +01:00
Mike Auty 288a017178 CLI: fix up the previous broken commit 2020-08-22 11:55:23 +01:00
Mike Auty fc5b051692 CLI: Apply the same specific config parsing to automagic 2020-08-22 11:18:01 +01:00
Mike Auty 91b0774a65 CLI: Only attempt to parse relevant config options
Fixes: #310
2020-08-22 11:08:48 +01:00
Mike Auty 8e420cbe62 Core: Multiple typing fixes across the tree 2020-08-16 22:22:24 +01:00
Mike Auty 99a536e57e CLI: Revert epilog changes 2020-08-07 00:15:19 +01:00
Mike Auty a80400cfa6 CLI: Add additional help about 'vol.py plugin --help' 2020-08-06 16:59:53 +01:00
Mike Auty fb1901ea89 Renderers: Fix the pretty renderer when no rows are emitted 2020-08-03 19:40:58 +01:00
Mike Auty dc1e5064c9 Framework: Move cache_clear function to the framework 2020-07-26 22:57:33 +01:00
Mike Auty af1b8c03e7 Renderer: Rename StrLike to MultiTypeData 2020-07-16 19:44:18 +01:00
Dave Lassalleandikelos 42a97dd10c Registry: handle ints, multi strings, and binary data with StrLike 2020-07-16 19:44:18 +01:00
Mike Auty b31f9eb6e2 Registry: Move control of the StrLike output to the UIs 2020-07-16 19:44:18 +01:00
Mike Auty 9e02a1b3c6 CLI: Improve ListRequirement support 2020-07-16 11:16:58 +01:00
Mike Auty 432e74ecd1 CLI: Reword the help message and yapf format 2020-07-11 11:59:38 +01:00
Niklas Neierlandikelos 077cdfb36e Added instructions for help on a plugin 2020-07-11 11:52:31 +01:00
Mike Auty 16c2ddb837 Automagic: Change stackers to including an exclusion list 2020-07-02 19:33:32 +01:00
Mike Auty 33d1c696e5 Automagic: Allow stackers to be configurable 2020-07-02 19:33:32 +01:00
Mike Auty 826102c0b5 Logging: Fixes issue #241 2020-06-30 08:58:40 +01:00
Mike Auty ea20ae1c0c Docs: Add CLI manpage (and fix a CLI option) 2020-06-28 00:57:46 +01:00
Hans P. Reiserandikelos cc6f4fbf9d print correct db/dd/.. offset: increment offset after printing, not before 2020-06-25 22:19:19 +01:00
Mike Auty 0ffe318cb0 Project: Update copyright headers for files added in 2020. 2020-06-10 21:13:37 +01:00
Mike Auty 0c43beb42d Core: Apply yapf across all files again. 2020-05-05 22:14:33 +01:00
Mike Auty bd2a382d88 CLI & windows.handles: Improve exception handling 2020-03-16 22:34:03 +00:00
Mike Auty 3a824b519e CLI: Show choices options when no argument provided
Fixes issue #191.
2020-02-15 13:23:19 +00:00
Mike Auty c4829ccca3 Caching: Add clear-cache option (except hashcaches) 2020-01-30 01:57:48 +00:00
Mike Auty fc005d08cc CLI: Fix issue #163, incorrect parallelism option 2019-12-28 21:21:55 +00:00
Mike Auty 604e8adcbc Renderers: Fix up the JSON renderer's timedate formatting 2019-12-16 21:58:22 +00:00
Mike Auty 681da142c5 Renderers: Split JSON output into JSON and JSONL 2019-12-16 21:58:22 +00:00
Mike Auty fc5062fbe0 Renderers: Don't include the title in JSON output. 2019-12-16 21:58:22 +00:00
Mike Auty 0746fd2994 Add in JSON renderer. 2019-12-16 21:58:22 +00:00
Mike Auty fd22c3a92e Renderers: ensure pretty renderer outputs diagnostics to stderr not stdout. 2019-12-03 01:56:41 +00:00
Mike Auty 25470d7f5c CLI: Pretty renderer doesn't provide structured output. 2019-12-03 01:56:41 +00:00
Mike Auty 5528f8f86c CLI: Don't output the title for structured output. 2019-12-03 01:56:41 +00:00
Mike Auty 0d37a3db5c Volshell: Improve typing issues identified by mypy 2019-11-23 20:36:49 +00:00
Mike Auty b99ace86fb Tidy up exceptions to be more accurate. 2019-11-13 19:58:14 +00:00
Mike Auty 8532eef781 CLI: Clean-up final exception output 2019-11-13 19:27:00 +00:00