Skip to content

Commit 7badb99

Browse files
committed
feat: replace kong with cobra/viper
`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
1 parent c5f2d13 commit 7badb99

22 files changed

+1541
-576
lines changed

LICENSE

+1
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,4 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2121
SOFTWARE.
22+

cli/cli.go

-61
This file was deleted.

cli/helpers_test.go

-85
This file was deleted.

cli/mappers.go

-37
This file was deleted.

0 commit comments

Comments
 (0)