Skip to content

Commit

Permalink
feat: replace kong with cobra/viper
Browse files Browse the repository at this point in the history
`treefmt.toml` has been extended to include an entry for most of the flags that can be passed to `treefmt`.

In addition, values can now be specified via the environment, prefixed with `TREEFMT_`.

Finally, the order of precedence for value lookup has been fixed: flag -> env -> treefmt.toml.

Closes #351
  • Loading branch information
brianmcgee committed Oct 9, 2024
1 parent c5f2d13 commit 7badb99
Show file tree
Hide file tree
Showing 22 changed files with 1,541 additions and 576 deletions.
1 change: 1 addition & 0 deletions LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

61 changes: 0 additions & 61 deletions cli/cli.go

This file was deleted.

85 changes: 0 additions & 85 deletions cli/helpers_test.go

This file was deleted.

37 changes: 0 additions & 37 deletions cli/mappers.go

This file was deleted.

Loading

0 comments on commit 7badb99

Please sign in to comment.