taskcmd 0.1.1

Task commander
Documentation
version: '3'

silent: true

tasks:

  build:
    desc: Builds in debug mode
    cmds:
      - cmd: cargo +stable build

  clean:
    desc: Cleans all targets
    cmds:
      - cmd: cargo +stable clean

  clippy:
    desc: Runs clippy for all targets
    cmds:
      - cmd: cargo +stable clippy --all-targets

  cov:
    desc: Generates code coverage report in text format
    cmds:
      - cmd: cargo +stable llvm-cov clean
      - cmd: cargo +stable llvm-cov --no-cfg-coverage

  cov-html:
    desc: Generates code coverage report in HTML format
    cmds:
      - cmd: cargo +stable llvm-cov clean
      - cmd: cargo +stable llvm-cov --no-cfg-coverage --html

  cov-html-open:
    desc: Generates code coverage report in HTML format
    cmds:
      - cmd: cargo +stable llvm-cov clean
      - cmd: cargo +stable llvm-cov --no-cfg-coverage --html --open

  cov-badge:
    desc: Generates the detailed code coverage badge
    cmds:
      - cmd: cargo +stable llvm-cov clean
      - cmd: cargo +stable llvm-cov --no-cfg-coverage --json --summary-only | coverio -l coverage -c --tag cov-badge

  doc:
    desc: Generates documentation
    cmds:
      - cmd: cargo +stable doc

  doc-private:
    desc: Generates documentation
    cmds:
      - cmd: cargo +stable doc --document-private-items

  doc-open:
    desc: Generates documentation and opens in browser
    cmds:
      - cmd: cargo +stable doc --open

  doc-private-open:
    desc: Generates documentation and opens in browser
    cmds:
      - cmd: cargo +stable doc --open --document-private-items

  fmt:
    desc: Runs code formatter
    cmds:
      - cmd: cargo +nightly fmt

  install:
    desc: Builds and installs release version from local sources
    cmds:
      - cmd: cargo +stable install taskcmd --path . --force

  manual:
    desc: Builds the manual from its markdown files
    cmds:
      - cmd: cd manual && mdbook build

  readme:
    desc: Regenerates README.md file
    cmds:
      - cmd: magg readme
      - task: cov-badge

  serve:
    desc: Serves the manual locally and rebuilds on changes
    silent: true
    ignore_error: true
    cmds:
      - cmd: cd manual && mdbook serve || true

  test:
    desc: Runs tests in debug mode
    cmds:
      - cmd: cargo +stable test

  testn:
    desc: Runs tests in debug mode
    cmds:
      - cmd: cargo +stable nextest run

  uninstall:
    desc: Uninstalls previously installed local version
    cmds:
      - cmd: cargo +stable uninstall taskcmd