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

feat(cli): implement --stdin-filepath flag #1712

Merged
merged 2 commits into from
Jul 6, 2021
Merged

Conversation

P0lip
Copy link
Contributor

@P0lip P0lip commented Jul 4, 2021

Closes #1001

Checklist

  • Tests added / updated
  • Docs added / updated

Does this PR introduce a breaking change?

  • Yes
  • No

Additional context

A low-hanging fruit.

We follow ESLint & Prettier here.

  • ESLint
Using stdin:
  --stdin                         Lint code provided on <STDIN> - default: false
  --stdin-filename String         Specify filename to process STDIN as
  • Prettier
  --stdin-filepath <path>  Path to the file to pretend that stdin comes from.

@P0lip P0lip added the enhancement New feature or request label Jul 4, 2021
@P0lip P0lip self-assigned this Jul 4, 2021
@P0lip P0lip requested a review from mnaumanali94 July 4, 2021 20:33
@P0lip P0lip enabled auto-merge (squash) July 4, 2021 20:33
@P0lip P0lip merged commit 45b15a2 into develop Jul 6, 2021
@P0lip P0lip deleted the feat/cli/stdin-filepath branch July 6, 2021 12:31
@stoplight-bot
Copy link
Collaborator

🎉 This PR is included in version @stoplight/spectral-cli-v1.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

stoplight-bot pushed a commit that referenced this pull request Jul 8, 2021
# @stoplight/spectral-cli-v1.0.0 (2021-07-08)

### Features

* **cli:** demand some ruleset to be present ([#1699](#1699)) ([3baba29](3baba29))
* **cli:** implement --stdin-filepath flag ([#1712](#1712)) ([45b15a2](45b15a2))
* **core:** support overrides in rulesets ([#1684](#1684)) ([153d685](153d685))
* **core:** use double quotes in errors reported by Ajv ([#1718](#1718)) ([dd2a166](dd2a166))
* **ruleset-migrator:** implement ruleset migrator  ([#1698](#1698)) ([efa5c50](efa5c50))
* **ruleset-migrator:** inline external rulesets & support exceptions  ([#1711](#1711)) ([2a1d2d3](2a1d2d3))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[RFC] Allow except to cope with STDIN input
3 participants