Skip to content

Consider validating clojure tools cli and lein antq plugin options #280

@lread

Description

@lread

Source

Broken out from #274 (comment)

Currently

Antq options are validated from when specified as command line args when running antq via clojure -M.

But antq options are not validated:

  1. when specified via clojure cli tool or via clojure -X
  2. in project.clj under :antq

Proposal

It would be nice to present the user with a clear error message when they've specified invalid options for lein plugin and clojure tool/-X usage.

Technical

Ideas from #274:

  1. Use malli, antq uses malli as a dev dep. Using malli as a default dep might hinge on fleshing out other existing antq malli specs
  2. Use babashka.cli, this would replace clojure.tools.cli as an antq dep
  3. Hand craft

Next Steps

I'm interested in exploring idea 2. If it works, it could consolidate antq options validation into a single babashka cli spec.

I could explore, and if things look prmosing, I could submit a PR for review.
Does that sound OK?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions