Closed timo-reymann closed 2 months ago
Currently pint is only usable as a command line application, without even a minimal API exposed.
This makes it de-facto impossible to embed it into other go applications. Which is exactly the use case I have.
What do you think about at least offering sth like
package other_tool import ( "github.com/cloudflare/pint/cli" "os" ) func main() { cli.Run(os.Args) }
Where cli.Run is basically the same done in cmd/pint/main.go
cli.Run
This would enable embedding pint into other applications for easier integration and distribution.
pint is a tool we developed to improve health of our internal Prometheus rule deployment. The goal was to have a cli tool and a daemon, we don't have a use case for embedding and so it's a non-goal.
Currently pint is only usable as a command line application, without even a minimal API exposed.
This makes it de-facto impossible to embed it into other go applications. Which is exactly the use case I have.
What do you think about at least offering sth like
Where
cli.Run
is basically the same done in cmd/pint/main.goThis would enable embedding pint into other applications for easier integration and distribution.