项目作者: juancarlospaco

项目描述 :
Nimpretty GitHub Action
高级语言: JavaScript
项目地址: git://github.com/juancarlospaco/nimpretty-action.git
创建时间: 2020-11-04T18:21:07Z
项目社区:https://github.com/juancarlospaco/nimpretty-action

开源协议:MIT License

下载


Nimpretty-Action

Examples

Use

  1. on: push
  2. jobs:
  3. build:
  4. runs-on: ubuntu-latest
  5. steps:
  6. - uses: actions/checkout@master
  7. - uses: jiro4989/setup-nim-action@v1
  8. - uses: juancarlospaco/nimpretty-action@main

Options

  • indent Optional, positive integer, defaults to 2, recommended value 2.
  • folders Optional, comma separated list of folders, defaults to ".".
  • maxLineLen Optional, positive integer, recommended value >= 80.

Examples:

  1. - uses: juancarlospaco/nimpretty-action@main
  2. with:
  3. indent: 2
  4. folders: "src,docs,examples"
  5. maxLineLen: 420
  1. - uses: juancarlospaco/nimpretty-action@main
  2. with:
  3. indent: 2
  4. folders: "src"
  5. maxLineLen: 100

Requisites

  • jiro4989/setup-nim-action to setup Nim with nimpretty.
  • EndBug/add-and-commit to commit all nimpretty fixes back to the Git repo.

FAQ

  • Why not take care of setting up Nim by itself?.

Because some people already do it with just Git or Gitnim or Choosenim or setup-nim-action.

  • Why not take care of commiting the files by itself?.

Because some people already do it with EndBug/add-and-commit or stefanzweifel/git-auto-commit-action or github-actions/auto-commit.