Commit Graph

9 Commits

Author SHA1 Message Date
Peter Hedenskog fc2884fbba
Update all dependencies to latest releases (#3774) 2023-03-03 13:59:14 +01:00
Peter Hedenskog 631271126f
New plugins structure and esmodule (#3769)
* New plugins structure and esmodule
2023-02-25 11:16:58 +01:00
Peter Hedenskog 685d55b349
Get groupAlias from file (#3655) 2022-05-19 21:54:40 +02:00
Peter Hedenskog 1e9bea8bf0
Update to latest prettier/eslint setup (#3478) 2021-10-11 18:44:59 +02:00
Erick Wilder 8cf3c24722
Refactor grafana cli options (#2984)
* test(cli): add basic coverage to test cli help output

- Add basic coverated when invoking the command without arguments
- Basic checks for grafana help

* feat(cli): delegate command line options configuration to the Grafana plugin

It uses the name of the plugin as a namespace for all options. Plugin authors _may_ use this
in the future to show helpful messages in the default sitespeed CLI help output.

- Move CLI options to its own module to not pollute the plugin's `index.js` file.
- Change the plugin interface to define a `.cliOptions` property or method containing the `yargs`
  configuration to be used by the CLI code
- Add code coverage for the existing plugin API to ensure no regressions are introduced for Grafana
- Move parts of the `yargs`-related code to `cli/util.js`. Tests to ensure the initial proposition for
  plugin-based CLI options are included.

Co-authored-by: Peter Hedenskog <peter@soulgalore.com>
2020-05-11 20:31:52 +02:00
Peter Hedenskog 1448e5e468
First go at adding configurable groups #2958 (#2964)
* First go at adding configurable groups #2958

* Fix broken group

* simplify group handling

* Adjust test to the new structure
2020-04-27 08:19:41 +02:00
Peter Hedenskog fde96dc574
Watch for missing --multi parameters (#2288) 2019-02-05 07:27:28 +01:00
Peter Hedenskog 74311216d6
Use alias from cli #2127 (#2133) 2018-10-07 00:01:22 +02:00
Tobias Lidskog d1b376e2ca
Split out code that’s never accessed from plugins. (#1762) 2017-10-29 09:54:22 +01:00
Renamed from lib/support/cliUtil.js (Browse further)