mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-12-22 18:30:43 -06:00
reduce whitespace
This commit is contained in:
parent
e3a718ed27
commit
d13c4f77da
1 changed files with 5 additions and 15 deletions
|
@ -119,24 +119,14 @@ pub fn cache(self: *Oizys) !void {
|
||||||
|
|
||||||
pub fn run(self: *Oizys) !void {
|
pub fn run(self: *Oizys) !void {
|
||||||
switch (self.cmd) {
|
switch (self.cmd) {
|
||||||
.@"switch" => {
|
.@"switch" => try self.runNixCmd(NixCmd.NixosRebuild, &.{ "switch", "--flake", self.flake }),
|
||||||
try self.runNixCmd(NixCmd.NixosRebuild, &.{ "switch", "--flake", self.flake });
|
.boot => try self.runNixCmd(NixCmd.NixosRebuild, &.{ "boot", "--flake", self.flake }),
|
||||||
},
|
.dry => try self.runNixCmd(NixCmd.Nix, &.{ "build", self.output, "--dry-run" }),
|
||||||
.boot => {
|
.build => try self.runNixCmd(NixCmd.Nix, &.{ "build", self.output }),
|
||||||
try self.runNixCmd(NixCmd.NixosRebuild, &.{ "boot", "--flake", self.flake });
|
|
||||||
},
|
|
||||||
.dry => {
|
|
||||||
try self.runNixCmd(NixCmd.Nix, &.{ "build", self.output, "--dry-run" });
|
|
||||||
},
|
|
||||||
.build => {
|
|
||||||
try self.runNixCmd(NixCmd.Nix, &.{ "build", self.output });
|
|
||||||
},
|
|
||||||
.output => {
|
.output => {
|
||||||
const stdout = std.io.getStdOut().writer();
|
const stdout = std.io.getStdOut().writer();
|
||||||
try stdout.print("{s}\n", .{self.output});
|
try stdout.print("{s}\n", .{self.output});
|
||||||
},
|
},
|
||||||
.cache => {
|
.cache => try self.cache(),
|
||||||
try self.cache();
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue