Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rework audit interviewers for CLI #699

Merged
merged 16 commits into from
Feb 24, 2021
Merged

Rework audit interviewers for CLI #699

merged 16 commits into from
Feb 24, 2021

Conversation

kasperisager
Copy link
Contributor

@kasperisager kasperisager commented Feb 9, 2021

Resolves #255.

Currently mostly exploratory to figure out the direction we want to take this. The plan so far is to provide a single core interviewer, @siteimprove/alfa-interviewer-console, that functions similarly to the current --interactive mode of the CLI, but implemented using https://github.com/vadimdemedes/ink instead.

On second thought, this pull request will only solve the first part of the puzzle; making interviewers external to the CLI. We will not implement a core interviewer just yet as this will be a significant undertaking. I'll branch off the current console interviewer for later use. This means that, for now, the CLI is limited to custom interviewers, which is still a massive improvement over the partial implementation of the current --interactive mode:

alfa audit --interviewer ./interviewer.js https://example.com

@kasperisager kasperisager added the major Backwards-incompatible change that touches public API label Feb 9, 2021
* master:
  Add @siteimprove/alfa-selective package (#702)
  Implement `Hashable` for `Either<L, R>`
  Bump typescript from 4.1.3 to 4.1.4 (#701)
* master:
  Update changelog
  Add missing requirement to R21
  Internal optimisations to reduce allocations
  Split out property test cases
  Adjust test cases
  Internal cleanup of style properties
  Make R74 and R75 inapplicable to 0-dimension font sizes
  SIA R7 ignore invisible text and fully overwritten attributes (#675)
  Disable Dependabot for now
  Upgrade to Yarn Berry (#258)
  Bump webdriverio from 6.12.1 to 7.0.1 (#700)
  Add user agent styles for form controls
  Switch to native Node.js source map support (#267)
  Bump @angular/core from 11.1.2 to 11.2.0 (#705)
  Bump typescript from 4.1.4 to 4.1.5 (#704)
  Bump @types/chai from 4.2.14 to 4.2.15 (#703)
  Add missing package references
  Add missing package references
* master: (35 commits)
  Add additional `Comparable` functions
  Require that keys be object types in `Cache<K, V>`
  Add some whitespace to `Command` output
  Avoid some branch misses in `SelectorMap.from()`
  Use plain `Map` for CLI answers
  Add additional and deprecate some existing `Parser` functions
  Internal alignment
  Add additional collection methods
  Align `Array` and `Iterable` functions
  Correct return type of `Array.filter()` and `Array.reject()`
  Treat `aria-hidden` as case-insensitive
  Use a plain `Map` for cached computed properties
  Use JSON for `Node` and `Name` test cases
  Update Contributor Covenant to 2.0
  Support legacy `display` values
  Configure labels
  Bump actions/cache from v1 to v2.1.4 (#720)
  Bump actions/setup-node from v1 to v2.1.4 (#719)
  Enable updates for actions
  Update build instructions
  ...
* master:
  Update @types/node
* master:
  Update all dependencies
@kasperisager kasperisager self-assigned this Feb 22, 2021
@kasperisager kasperisager marked this pull request as ready for review February 22, 2021 19:12
@kasperisager kasperisager requested a review from Jym77 February 22, 2021 19:12
Jym77
Jym77 previously approved these changes Feb 23, 2021
* master:
  `NODE_AUTH_TOKEN` -> `GITHUB_TOKEN`
  Use `NODE_AUTH_TOKEN` for registry authentication
  v0.11.0
  Add scripts for handling release tasks
  Update release workflow
  Update lockfile
  Upgrade to Yarn `master`
  Add version ranges to workspace references
  Add missing plugin
  Use `workspace:` protocol for local package references
  Remove Lerna and disable publish
  Revert "v0.11.0"
  Add missing release heading
  v0.11.0
  Update changelog
  Additional allocation reductions
  Allow self-referencing `aria-labelledby`
  Bump actions/setup-node from v2.1.4 to v2.1.5 (#721)
Jym77
Jym77 previously approved these changes Feb 24, 2021
@kasperisager kasperisager deleted the interviewer branch February 24, 2021 08:40
kasperisager added a commit that referenced this pull request Feb 24, 2021
* master: (75 commits)
  Rework audit interviewers for CLI (#699)
  Rework `Hash` as an abstract class (#670)
  `NODE_AUTH_TOKEN` -> `GITHUB_TOKEN`
  Use `NODE_AUTH_TOKEN` for registry authentication
  v0.11.0
  Add scripts for handling release tasks
  Update release workflow
  Update lockfile
  Upgrade to Yarn `master`
  Add version ranges to workspace references
  Add missing plugin
  Use `workspace:` protocol for local package references
  Remove Lerna and disable publish
  Revert "v0.11.0"
  Add missing release heading
  v0.11.0
  Update changelog
  Additional allocation reductions
  Allow self-referencing `aria-labelledby`
  Bump actions/setup-node from v2.1.4 to v2.1.5 (#721)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
major Backwards-incompatible change that touches public API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement remaining input types in CLI when run in --interactive mode
2 participants