refactor: use enum for Repository.Type
1 file changed, 3 insertions(+), 3 deletions(-)
changed files
M internal/config/config.go → internal/config/config.go
@@ -94,7 +94,7 @@ return } var nixpkgs = Repository{ - Type: "github", + Type: GitHub, Owner: "NixOS", Repo: "nixpkgs", }@@ -146,7 +146,7 @@ OutputPath: "share/doc/darwin", FetchTimeout: Duration{5 * time.Minute}, ImportTimeout: Duration{15 * time.Minute}, Repo: Repository{ - Type: "github", + Type: GitHub, Owner: "LnL7", Repo: "nix-darwin", },@@ -165,7 +165,7 @@ OutputPath: "share/doc/home-manager", FetchTimeout: Duration{5 * time.Minute}, ImportTimeout: Duration{15 * time.Minute}, Repo: Repository{ - Type: "github", + Type: GitHub, Owner: "nix-community", Repo: "home-manager", },