pluralsh / plural-cli

cli for the plural platform
MIT License
27 stars 10 forks source link

fix: Add preflight checks and improve error handling in the UI #397

Closed floreks closed 1 year ago

floreks commented 1 year ago

Summary

Test Plan

Locally

Checklist

michaeljguarino commented 1 year ago

I actually think you just need to wrap the function in the rooted validator like here: https://github.com/pluralsh/plural-cli/blob/main/cmd/plural/plural.go#L91 and it'll provide our standard error message when the command is run outside the repo

floreks commented 1 year ago

Done. I have also wrapped it with tracked method.