-
Notifications
You must be signed in to change notification settings - Fork 8
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
Feature request > Configure input command from file #74
Comments
Feature being actually discussed with @tamere-allo-peter and @mbarre |
@adriens no .yamllint can't be the conf file, I meant .yamlfixer Anyway currently $ cat arguments
--summary
xx/fakeansiblevault.yml
xx/bad.yml
xx/good.yml
xx/withtabs.yml
$ yamlfixer --jsonsummary @arguments
usage: yamlfixer [-h] [-v] [-b] [-B BACKUPSUFFIX] [-d] [-l] [-j | -p | -s] [-t TABSIZE] [file [file ...]]
yamlfixer: error: argument -s/--summary: not allowed with argument -j/--jsonsummary
$ yamlfixer @arguments <examples/bad.yml
---
name: Build HelloYaml
# yamllint disable-line rule:truthy
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: 11
distribution: 'adopt'
cache: 'maven'
- name: Build with Maven
run: mvn package
Files to fix: 5
1 files successfully passed yamllint strict mode
3 files were modified
1 files were skipped
0 files were not writeable
0 files with unknown status
SKIPPED /home/jerome/yamlfixer/xx/fakeansiblevault.yml
MODIFIED /home/jerome/yamlfixer/xx/bad.yml (handled 4/4)
PASSED /home/jerome/yamlfixer/xx/good.yml
MODIFIED /home/jerome/yamlfixer/xx/withtabs.yml (handled 1/1)
MODIFIED <stdin> (handled 4/4) |
@adriens not sure if a new release is needed for this, as I thought it was either already working or a very quick fix, and in reality it was a one-liner... |
So it was working with this approach.
If it's the case, yep, no need for a new reelase 👍 |
... maybe a dedicated entry in the README could help ❔ |
Just released with this dedicated entry. |
Let me have a 👀 |
Could you be more specific eg. with :
As for now it's not that easy for me to understad how to use this feature : Next, I'll create a dedicated |
🙏 |
🚀 |
📜 Read (and accept) this before
❔ Context
Detail the current situation/difficultes or problem you are facing and how you think
yamlfixer
could help :👉 Actually we neeed to call a command line to run a
yamlfixer
command.... but in some cases, it is possible that we could have to always run the same command with the same parameters from the same directory.
💡 Proposed solution
Detail here what you would like
yamlfixer
to do to help on the problematic.In that case, the command line can be historized/versioned for example in CI scenarios.
it could looke like that :
All parameters could be put in the conf file.. probably as simple
yml
file so it could be linted itsefl byyamlfixer
and also deal with potential hierarchical parameters.By default
.yamllint
could be the conf file (thanks for pointing this @tamere-allo-peter 👍 )📑 Linked resources
gomplate
implements thatThe text was updated successfully, but these errors were encountered: