Compare commits

..

No commits in common. "8442447bfd7b3336cb72ac63acafbeda92538de4" and "4230aa175addd0926b2190c91b618bc7452795f1" have entirely different histories.

3 changed files with 4 additions and 13 deletions

View file

@ -57,7 +57,7 @@ in
# oizys-zig = pkgs.callPackage ../pkgs/oizys/oizys-zig { inherit zig2nix; };
# oizys-nim = pkgs.callPackage ../pkgs/oizys/oizys-nim { };
# oizys-rs = pkgs.callPackage ../pkgs/oizys/oizys-rs { };
oizys-go = pkgs.callPackage ../pkgs/oizys/oizys-go { inherit self; };
oizys-go = pkgs.callPackage ../pkgs/oizys/oizys-go { inherit self lib; };
default = oizys-go;
});
devShells = forAllSystems (pkgs: {

View file

@ -6,7 +6,6 @@ import (
o "oizys/internal/oizys"
"github.com/charmbracelet/log"
"github.com/charmbracelet/lipgloss"
cc "github.com/ivanpirog/coloredcobra"
"github.com/spf13/cobra"
)
@ -55,15 +54,8 @@ var rootCmd = &cobra.Command{
func setupLogger() {
log.SetReportTimestamp(false)
styles := log.DefaultStyles()
colors := map[log.Level]string{
log.DebugLevel: "8",
log.InfoLevel: "6",
log.WarnLevel: "3",
log.ErrorLevel: "1",
log.FatalLevel: "1",
}
for k, v := range colors {
styles.Levels[k] = styles.Levels[k].MaxWidth(5).Width(5).Foreground(lipgloss.Color(v))
for k, v := range styles.Levels {
styles.Levels[k] = v.Width(5).MaxWidth(5)
}
log.SetStyles(styles)
}

View file

@ -1,5 +1,4 @@
{
self,
lib,
installShellFiles,
buildGoModule,
@ -13,7 +12,7 @@ let
in
buildGoModule {
pname = "oizys";
version = "${self.shortRev or "dirty"}";
version = "unstable";
src = cleanSource ./.;
vendorHash = "sha256-/JVXhXrU2np/ty7AGFy+LPZCo1NaLYl9NAyD9+FJYBI=";