antex 0.1.0-rc.0

Styled text and tree in terminal
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 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
      - task: cov-extra
      - cmd: cargo +stable llvm-cov --no-cfg-coverage --no-clean

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

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

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

  cov-extra:
    desc: Executes additional test with output redirected to other process
    cmds:
      - cmd: cargo +stable llvm-cov test text_default_should_work --no-report | cat

  doc:
    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 --document-private-items

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

  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

  run:
    desc: Runs the application
    cmds:
      - cmd: cargo +stable run