Compare commits

..

11 commits

Author SHA1 Message Date
79984d5ddc flake.lock: Update
Flake lock file updates:

• Updated input 'hyprland':
    'git+https://github.com/hyprwm/Hyprland/?ref=refs/heads/main&rev=2b520571e897be2a0e88c8692da607b062000038' (2024-08-04)
  → 'git+https://github.com/hyprwm/Hyprland/?ref=refs/heads/main&rev=b0a70f63e3865eaa77f0b78a04b230aa583bc95c' (2024-08-06)
• Updated input 'lix':
    '66469fc281.tar.gz?narHash=sha256-FrM0DN/i5kKB06/4KYNkY3mMGpC5hYQhaKtx1mneReU%3D' (2024-08-03)
  → 'f84997cbef.tar.gz?narHash=sha256-cEemTAXvhRcjn7XxujIRglqEfAFgdlNulkRSFskowbo%3D' (2024-08-06)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/81610abc161d4021b29199aa464d6a1a521e0cc9' (2024-08-02)
  → 'github:nixos/nixpkgs/d33cf80b603b3d0cddb48f9816cae707a59e2334' (2024-08-06)
• Updated input 'nixpkgs-wayland':
    'github:nix-community/nixpkgs-wayland/7ff73584dfac4799a253e38c2aedae80b681dd7f' (2024-08-04)
  → 'github:nix-community/nixpkgs-wayland/423d21c157c2a7b384ae9c766e25759576dceb87' (2024-08-06)
• Updated input 'nixpkgs-wayland/nixpkgs':
    'github:nixos/nixpkgs/d04953086551086b44b6f3c6b7eeb26294f207da' (2024-08-02)
  → 'github:nixos/nixpkgs/cb9a96f23c491c081b38eab96d22fa958043c9fa' (2024-08-04)
• Updated input 'roc':
    'github:roc-lang/roc/d4d9f69d0fbefd331172c11e430a5f2ac98ee30b' (2024-08-04)
  → 'github:roc-lang/roc/13f60cde09ef01c003fe362bf46e592a0f4ae7c6' (2024-08-05)
• Updated input 'zig2nix':
    'github:Cloudef/zig2nix/c45829191ae509708b929872845f75008942d9b5' (2024-08-04)
  → 'github:Cloudef/zig2nix/32c6285061bbab4920b020ec9e9f4aa5c9a81750' (2024-08-06)
• Updated input 'zls':
    'github:zigtools/zls/dfe958e4d1a9ba503cfafd39164f090daea70109' (2024-08-03)
  → 'github:zigtools/zls/74b5a00f67ab4e5a848646411779221e6cc24b87' (2024-08-06)
2024-08-06 17:10:58 +00:00
db01189615
remove verbose 2024-08-06 12:07:01 -05:00
da682c0073
change how flake.nix is organized 2024-08-06 11:58:11 -05:00
df4da6b3f9
leave this comments in case I run into unexpected nix-shell outputs 2024-08-06 11:41:39 -05:00
cb31371784
try to use lix 2024-08-06 10:22:27 -05:00
0a54af8cc7
use the same nixpkgs 2024-08-06 10:02:54 -05:00
e4a304c274
support non-extension file name 2024-08-06 10:02:54 -05:00
91a370de41
no more verbose flag 2024-08-06 10:02:54 -05:00
b0bffa1a1f
use newer type 2024-08-05 11:00:25 -05:00
884bc993ec
cli cleanup 2024-08-05 10:58:37 -05:00
805f1c19b3 flake.lock: Update
Flake lock file updates:

• Updated input 'hyprland':
    'git+https://github.com/hyprwm/Hyprland/?ref=refs/heads/main&rev=ab0a3268e04f2295ec4455be90ce8d0c2b107b8d&submodules=1' (2024-08-01)
  → 'git+https://github.com/hyprwm/Hyprland/?ref=refs/heads/main&rev=2b520571e897be2a0e88c8692da607b062000038&submodules=1' (2024-08-04)
• Updated input 'hyprland-contrib':
    'github:hyprwm/contrib/65d42dcbfde2229a75ccdb195c318dfe241f9ade?narHash=sha256-78j/cY%2BAXoMIqqiNc1vWx237EPfpERAcYsb57ABUbwQ%3D' (2024-07-11)
  → 'github:hyprwm/contrib/9d67858b437d4a1299be496d371b66fc0d3e01f6?narHash=sha256-%2B7IS0n3/F0I5j6ZbrVlLcIIPHY3o%2B/vLAqg/G48sG%2Bw%3D' (2024-08-02)
• Updated input 'lix':
    '61a93d5308.tar.gz?narHash=sha256-IDr%2BfHKwmpaWi4hzD2RYLdiaGEFOrsFm%2BNeHKETxMhk%3D' (2024-08-01)
  → '66469fc281.tar.gz?narHash=sha256-FrM0DN/i5kKB06/4KYNkY3mMGpC5hYQhaKtx1mneReU%3D' (2024-08-03)
• Updated input 'nix-index-database':
    'github:nix-community/nix-index-database/c0ca47e8523b578464014961059999d8eddd4aae?narHash=sha256-x3FmT4QSyK28itMiR5zfYhUrG5nY%2B2dv%2BAIcKfmSp5A%3D' (2024-07-28)
  → 'github:nix-community/nix-index-database/97ca0a0fca0391de835f57e44f369a283e37890f?narHash=sha256-UQPgA5d8azLZuDHZMPmvDszhuKF1Ek89SrTRtqsQ4Ss%3D' (2024-08-04)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/c3392ad349a5227f4a3464dce87bcc5046692fce?narHash=sha256-5US0/pgxbMksF92k1%2BeOa8arJTJiPvsdZj9Dl%2BvJkM4%3D' (2024-07-31)
  → 'github:nixos/nixpkgs/81610abc161d4021b29199aa464d6a1a521e0cc9?narHash=sha256-TcXjLVNd3VeH1qKPH335Tc4RbFDbZQX%2Bd7rqnDUoRaY%3D' (2024-08-02)
• Updated input 'nixpkgs-wayland':
    'github:nix-community/nixpkgs-wayland/0bbe640011f1350933109f5450b15f9bd1fb5e9f?narHash=sha256-9YvLtuLAA%2BLVmfrvlOsynHkS0DRCYnHFEp72NfXFVnc%3D' (2024-08-01)
  → 'github:nix-community/nixpkgs-wayland/7ff73584dfac4799a253e38c2aedae80b681dd7f?narHash=sha256-7Yrsx/qbGCojDFxHSMsehU6a9z8rHCUVgjalKxPW4Eg%3D' (2024-08-04)
• Updated input 'nixpkgs-wayland/lib-aggregate':
    'github:nix-community/lib-aggregate/4ce8efe904950cd85bda9624ff1c2ec55fe2ab6f?narHash=sha256-16XBXW86ceQC%2BjRx7feCREZo696kvIzpKYmN2LnKfaE%3D' (2024-07-28)
  → 'github:nix-community/lib-aggregate/04a4b4d84e02590715e753da3d35fb03cddc6425?narHash=sha256-puSEio9yjWojIBDBts4BSGZ43rv1LzIevdYOKmW/Mjg%3D' (2024-08-04)
• Updated input 'nixpkgs-wayland/lib-aggregate/nixpkgs-lib':
    'github:nix-community/nixpkgs.lib/d15f6f6021693898fcd2c6a9bb13707383da9bbc?narHash=sha256-L8rwzYPsLo/TYtydPJoQyYOfetuiyQYnTWYcyB8UE/s%3D' (2024-07-28)
  → 'github:nix-community/nixpkgs.lib/8bebd4c74f368aacb047f0141db09ec6b339733c?narHash=sha256-do2Mfm3T6SR7a5A804RhjQ%2BJTsF5hk4JTPGjCTRM/m8%3D' (2024-08-04)
• Updated input 'nixpkgs-wayland/nixpkgs':
    'github:nixos/nixpkgs/9f918d616c5321ad374ae6cb5ea89c9e04bf3e58?narHash=sha256-/DJBI6trCeVnasdjUo9pbnodCLZcFqnVZiLUfqLH4jA%3D' (2024-07-31)
  → 'github:nixos/nixpkgs/d04953086551086b44b6f3c6b7eeb26294f207da?narHash=sha256-hMyG9/WlUi0Ho9VkRrrez7SeNlDzLxalm9FwY7n/Noo%3D' (2024-08-02)
• Updated input 'roc':
    'github:roc-lang/roc/790eabd933e13b0836c6ec243c77f873a5956966?narHash=sha256-hjdIYAuQMWLtlxxj9GpgnfFgmGJhxDDYXnBvEVeNXG8%3D' (2024-08-01)
  → 'github:roc-lang/roc/d4d9f69d0fbefd331172c11e430a5f2ac98ee30b?narHash=sha256-BN/%2B/y1zR3sU4KhTdfNkleYS79UEnnmKP9MmY4NHZ8M%3D' (2024-08-04)
• Updated input 'zig2nix':
    'github:Cloudef/zig2nix/b368a9170c6d6727375d2f43baf2565280e86019?narHash=sha256-b9q/NoJ3I5LtXVvxxjxNRxDEVMd%2B1daVldCyAYH7aCU%3D' (2024-08-01)
  → 'github:Cloudef/zig2nix/c45829191ae509708b929872845f75008942d9b5?narHash=sha256-cTHYCv/I2P6/V9pUZ9iqwjr/9VIZ4f%2BaRqZJq6DWsac%3D' (2024-08-04)
• Updated input 'zls':
    'github:zigtools/zls/eba1489b6ffa6db7f0eaefce6e06d53cd9066f7b?narHash=sha256-GAzXTJUJJIXrAlHkInSDwlnVQPL5BV1Enbj3R4ipGFk%3D' (2024-07-28)
  → 'github:zigtools/zls/dfe958e4d1a9ba503cfafd39164f090daea70109?narHash=sha256-WtOixxAwZS1uTD5L66ms9ctA7gUdEIfzbsY1Gj%2BaV%2B4%3D' (2024-08-03)
• Updated input 'zls/zig-overlay':
    'github:mitchellh/zig-overlay/d9099d32bb395be5ed7eeb12ea0145d476632bd1?narHash=sha256-GLI%2B3yaZn6hHvv6wnYJHGqPfX6G3tXJNrTi7qYV9u94%3D' (2024-07-26)
  → 'github:mitchellh/zig-overlay/4c95bb8378ca31cc06eba0a9ee0c04851221c193?narHash=sha256-bRpvmyAvt4OFbQJlmAURyW1To8nlRjNcQJdbOyI1MLE%3D' (2024-08-02)
2024-08-05 00:34:51 +00:00
11 changed files with 76 additions and 92 deletions

View file

@ -57,7 +57,6 @@ jobs:
build --minimal \
--host "${{ inputs.hosts }}" \
--flake . \
--verbose \
--debug \
-- \
--print-build-logs

View file

@ -22,6 +22,7 @@ jobs:
- uses: DeterminateSystems/nix-installer-action@v13
with:
source-url: https://install.lix.systems/lix/lix-installer-x86_64-linux
extra-conf: |
accept-flake-config = true
@ -43,7 +44,6 @@ jobs:
build --minimal \
--host "othalan" \
--flake . \
--verbose \
--debug \
-- \
--print-build-logs
@ -86,7 +86,6 @@ jobs:
-- \
build $system_attr \
--flake . \
--verbose \
--debug \
-- \
--print-build-logs \
@ -101,9 +100,9 @@ jobs:
-- \
build $system_attr \
--flake . \
--verbose \
--debug \
-- \
--keep-going \
--print-build-logs \
--out-link updated

View file

@ -341,11 +341,11 @@
"xdph": "xdph"
},
"locked": {
"lastModified": 1722880701,
"narHash": "sha256-hAGsRq9YIuT6lC8p1ukd5uDRjgpjCcVb9PxrdNeO3jE=",
"lastModified": 1722956902,
"narHash": "sha256-g3cAlVmRtnyqMZw88MKqVNM8eU88XzgNAlXdTkym5q8=",
"ref": "refs/heads/main",
"rev": "0e86808e5912823f1c6bea1b6d5fcae297fc9f57",
"revCount": 5052,
"rev": "b0a70f63e3865eaa77f0b78a04b230aa583bc95c",
"revCount": 5055,
"submodules": true,
"type": "git",
"url": "https://github.com/hyprwm/Hyprland/"
@ -534,11 +534,11 @@
"lix": {
"flake": false,
"locked": {
"lastModified": 1722643724,
"narHash": "sha256-FrM0DN/i5kKB06/4KYNkY3mMGpC5hYQhaKtx1mneReU=",
"rev": "66469fc281fc4abb3284574f77a8051fee8116b9",
"lastModified": 1722957485,
"narHash": "sha256-cEemTAXvhRcjn7XxujIRglqEfAFgdlNulkRSFskowbo=",
"rev": "f84997cbefb2f2dd99e48f0ad39f747ed83d69e9",
"type": "tarball",
"url": "https://git.lix.systems/api/v1/repos/lix-project/lix/archive/66469fc281fc4abb3284574f77a8051fee8116b9.tar.gz"
"url": "https://git.lix.systems/api/v1/repos/lix-project/lix/archive/f84997cbefb2f2dd99e48f0ad39f747ed83d69e9.tar.gz"
},
"original": {
"type": "tarball",
@ -715,11 +715,11 @@
"nixpkgs": "nixpkgs_6"
},
"locked": {
"lastModified": 1722889110,
"narHash": "sha256-hwwKU6Ml5i8I6aBmEWsddz+fm7D0r56d3A9IoGD1qlM=",
"lastModified": 1722928655,
"narHash": "sha256-2BAfUaRzrhHwT/JodTq++DUf/nljgoFEc5A79SS8ydU=",
"owner": "nix-community",
"repo": "nixpkgs-wayland",
"rev": "f6cda1512287fa498bd363c0ae80e87606254cfb",
"rev": "423d21c157c2a7b384ae9c766e25759576dceb87",
"type": "github"
},
"original": {
@ -762,11 +762,11 @@
},
"nixpkgs_4": {
"locked": {
"lastModified": 1722802969,
"narHash": "sha256-bPhyAXNnVerBZusxOuPMhMm0X7hSFLFKcH+7ynfgLjs=",
"lastModified": 1722926584,
"narHash": "sha256-sLA+lfCxTkXf4o3JVxcfe+w9kAzauGfEnJ9roNbNng8=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "785feb91183a50959823ff9ba9ef673105259cd5",
"rev": "d33cf80b603b3d0cddb48f9816cae707a59e2334",
"type": "github"
},
"original": {
@ -794,11 +794,11 @@
},
"nixpkgs_6": {
"locked": {
"lastModified": 1722630782,
"narHash": "sha256-hMyG9/WlUi0Ho9VkRrrez7SeNlDzLxalm9FwY7n/Noo=",
"lastModified": 1722813957,
"narHash": "sha256-IAoYyYnED7P8zrBFMnmp7ydaJfwTnwcnqxUElC1I26Y=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "d04953086551086b44b6f3c6b7eeb26294f207da",
"rev": "cb9a96f23c491c081b38eab96d22fa958043c9fa",
"type": "github"
},
"original": {
@ -1156,11 +1156,11 @@
]
},
"locked": {
"lastModified": 1722820746,
"narHash": "sha256-WWaaNV8mv4SjLsohrBxGbgVVjSLPJNazQiQL/zqxaLM=",
"lastModified": 1722907357,
"narHash": "sha256-alp8wfWJtxLXKNuVXPjhWFtrGhp10/3Nle//1RkapgU=",
"owner": "Cloudef",
"repo": "zig2nix",
"rev": "9a3a862bf6b89bc77f2add620678b120b22c34bc",
"rev": "32c6285061bbab4920b020ec9e9f4aa5c9a81750",
"type": "github"
},
"original": {
@ -1180,11 +1180,11 @@
"zig-overlay": "zig-overlay"
},
"locked": {
"lastModified": 1722891504,
"narHash": "sha256-TlP+tlSAZTaJaulS2qEIaaQcJ7/z+mFs/cNTv+ccbzM=",
"lastModified": 1722919037,
"narHash": "sha256-h8BG+XOCli8++tCojSo/cF39AIixVj3mO94b4cuqT94=",
"owner": "zigtools",
"repo": "zls",
"rev": "f2f5339370cf166d75be9b220b9553396543c83c",
"rev": "74b5a00f67ab4e5a848646411779221e6cc24b87",
"type": "github"
},
"original": {

View file

@ -8,10 +8,7 @@
stable.url = "github:nixos/nixpkgs/nixos-23.11";
nixpkgs-wayland.url = "github:nix-community/nixpkgs-wayland";
nixos-wsl.url = "github:nix-community/NixOS-WSL";
nix-index-database = {
url = "github:nix-community/nix-index-database";
inputs.nixpkgs.follows = "nixpkgs";
};
nix-index-database.url = "github:nix-community/nix-index-database";
lix.url = "https://git.lix.systems/lix-project/lix/archive/main.tar.gz";
lix.flake = false;
@ -23,37 +20,23 @@
hyprland.url = "git+https://github.com/hyprwm/Hyprland/?submodules=1";
hyprland-contrib.url = "github:hyprwm/contrib";
roc.url = "github:roc-lang/roc";
zig2nix.url = "github:Cloudef/zig2nix";
zls.url = "github:zigtools/zls";
zig2nix = {
url = "github:Cloudef/zig2nix";
inputs.nixpkgs.follows = "nixpkgs";
};
zls = {
url = "github:zigtools/zls";
inputs.nixpkgs.follows = "nixpkgs";
};
pixi.url = "github:daylinmorgan/pixi-flake";
f1multiviewer.url = "github:daylinmorgan/f1multiviewer-flake";
tsm.url = "github:daylinmorgan/tsm?dir=nix";
hyprman.url = "git+https://git.dayl.in/daylin/hyprman.git";
roc = {
url = "github:roc-lang/roc";
inputs.nixpkgs.follows = "nixpkgs";
};
pixi = {
url = "github:daylinmorgan/pixi-flake";
inputs.nixpkgs.follows = "nixpkgs";
};
f1multiviewer = {
url = "github:daylinmorgan/f1multiviewer-flake";
inputs.nixpkgs.follows = "nixpkgs";
};
tsm = {
url = "github:daylinmorgan/tsm?dir=nix";
inputs.nixpkgs.follows = "nixpkgs";
};
hyprman = {
url = "git+https://git.dayl.in/daylin/hyprman.git";
inputs.nixpkgs.follows = "nixpkgs";
};
hyprman.inputs.nixpkgs.follows = "nixpkgs";
f1multiviewer.inputs.nixpkgs.follows = "nixpkgs";
nix-index-database.inputs.nixpkgs.follows = "nixpkgs";
pixi.inputs.nixpkgs.follows = "nixpkgs";
roc.inputs.nixpkgs.follows = "nixpkgs";
tsm.inputs.nixpkgs.follows = "nixpkgs";
zls.inputs.nixpkgs.follows = "nixpkgs";
zig2nix.inputs.nixpkgs.follows = "nixpkgs";
};
nixConfig = {

View file

@ -14,18 +14,29 @@ in
nixpkgs.config.allowUnfree = true;
# nix.package = pkgs.nixVersions.latest;
nix.extraOptions = ''
experimental-features = nix-command flakes
use-xdg-base-directories = true
'';
nix = {
extraOptions = ''
experimental-features = nix-command flakes
use-xdg-base-directories = true
'';
nix.optimise.automatic = true;
nix.gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 7d";
optimise.automatic = true;
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 7d";
};
# use the same nixpkgs for nix run "nixpkgs#hello" style commands
registry.nixpkgs.flake = inputs.nixpkgs;
};
# https://dataswamp.org/~solene/2022-07-20-nixos-flakes-command-sync-with-system.html#_nix-shell_vs_nix_shell
# use the same nixpkgs for nix-shell -p hello style commands
# I don't know that this is necesary...
# nix.nixPath = [ "nixpkgs=/etc/channels/nixpkgs" ];
# environment.etc."channels/nixpkgs".source = inputs.nixpkgs.outPath;
environment.systemPackages = [
pkgs.nixd
pkgs.nixfmt-rfc-style

View file

@ -41,7 +41,7 @@ in
options.oizys = {
user = mkOption {
type = lib.types.string;
type = lib.types.str;
default = "daylin";
description = "main user account";
};

View file

@ -10,10 +10,12 @@ import (
)
var validArgs = []string{
"switch", "boot", "test", "build", "dry-build", "dry-activate", "edit", "repl",
"switch", "boot", "test", "build", "dry-build",
"dry-activate", "edit", "repl",
"build-vm", "build-vm-with-bootloader",
"list-generations",
}
var osCmd = &cobra.Command{
Use: "os [subcmd]",
Short: "nixos-rebuild wrapper",
@ -21,11 +23,14 @@ var osCmd = &cobra.Command{
if err := cobra.MinimumNArgs(1)(cmd, args); err != nil {
return err
}
// Run the custom validation logic
if slices.Contains(validArgs, args[0]) {
return nil
}
return fmt.Errorf("unexpected arg: %s\nexpected one of:\n %s", args[0], strings.Join(validArgs, ", "))
return fmt.Errorf(
"unexpected arg: %s\nexpected one of:\n %s",
args[0],
strings.Join(validArgs, ", "),
)
},
Run: func(cmd *cobra.Command, args []string) {
subcmd := args[0]

View file

@ -32,7 +32,6 @@ var (
flake string
host string
debug bool
verbose bool
systemPath bool
resetCache bool
minimal bool
@ -48,7 +47,6 @@ var rootCmd = &cobra.Command{
}
oizys.SetFlake(flake)
oizys.SetHost(host)
oizys.SetVerbose(verbose)
oizys.SetResetCache(resetCache)
oizys.SetDebug(debug)
},
@ -76,7 +74,6 @@ func init() {
rootCmd.CompletionOptions.HiddenDefaultCmd = true
rootCmd.PersistentFlags().StringVar(&flake, "flake", "", "path to flake ($OIZYS_DIR or $HOME/oizys)")
rootCmd.PersistentFlags().StringVar(&host, "host", "", "host(s) to build (current host)")
rootCmd.PersistentFlags().BoolVarP(&verbose, "verbose", "v", false, "show verbose output")
rootCmd.PersistentFlags().BoolVar(&debug, "debug", false, "show debug output")
rootCmd.PersistentFlags().BoolVar(&resetCache, "reset-cache", false, "set narinfo-cache-negative-ttl to 0")
}

View file

@ -9,7 +9,6 @@ require (
github.com/google/go-github/v63 v63.0.0
github.com/ivanpirog/coloredcobra v1.0.1
github.com/spf13/cobra v1.8.0
golang.org/x/term v0.21.0
)
require (
@ -28,4 +27,5 @@ require (
github.com/spf13/pflag v1.0.5 // indirect
golang.org/x/exp v0.0.0-20231006140011-7918f672742d // indirect
golang.org/x/sys v0.21.0 // indirect
golang.org/x/term v0.21.0 // indirect
)

View file

@ -9,6 +9,7 @@ import (
"net/http"
"net/url"
"oizys/internal/oizys"
"strings"
"github.com/charmbracelet/log"
"github.com/google/go-github/v63/github"
@ -154,17 +155,10 @@ func ReadMarkdownFromZip(zipData []byte, fileName string) (string, error) {
return string(content), nil
}
// func CI(rest ...string) {
// args := []string{
// "workflow", "run", "build.yml",
// "-F", fmt.Sprintf("hosts=%s", o.host),
// }
// args = append(args, rest...)
// cmd := exec.Command("gh", args...)
// e.ExitWithCommand(cmd)
// }
func CreateDispatch(workflowFileName string, ref string, inputs map[string]interface{}) {
if !strings.HasSuffix(workflowFileName, ".yml") && !strings.HasSuffix(workflowFileName, ".yaml") {
workflowFileName = workflowFileName + ".yml"
}
log.Infof("creating dispatch event for %s", workflowFileName)
event := github.CreateWorkflowDispatchEventRequest{Ref: ref, Inputs: inputs}
_, err := client.Actions.CreateWorkflowDispatchEventByFileName(

View file

@ -35,7 +35,6 @@ type Oizys struct {
githubToken string
local bool
inCI bool
verbose bool
systemPath bool
resetCache bool
debug bool
@ -101,9 +100,6 @@ func SetHost(name string) {
}
func GetHost() string { return o.host }
func SetVerbose(v bool) {
o.verbose = v
}
func SetResetCache(reset bool) {
o.resetCache = reset
@ -241,7 +237,7 @@ func NixosRebuild(subcmd string, rest ...string) {
if !o.inCI {
cmd.Args = append(cmd.Args, "--log-format", "multiline")
}
if o.verbose {
if o.debug {
cmd.Args = append(cmd.Args, "--print-build-logs")
}
cmd.Args = append(cmd.Args, rest...)