mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-12-22 14:20:44 -06:00
noop
This commit is contained in:
parent
cc9cc45067
commit
ac339c6987
2 changed files with 6 additions and 4 deletions
|
@ -38,7 +38,7 @@ var rootCmd = &cobra.Command{
|
||||||
Use: "oizys",
|
Use: "oizys",
|
||||||
Short: "nix begat oizys",
|
Short: "nix begat oizys",
|
||||||
PersistentPreRun: func(cmd *cobra.Command, args []string) {
|
PersistentPreRun: func(cmd *cobra.Command, args []string) {
|
||||||
oizys.Update(flake, host, cacheName, verbose)
|
oizys.Set(flake, host, cacheName, verbose)
|
||||||
oizys.CheckFlake()
|
oizys.CheckFlake()
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -52,7 +52,7 @@ func (o *Oizys) Output() string {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (o *Oizys) Update(
|
func (o *Oizys) Set (
|
||||||
flake, host, cache string,
|
flake, host, cache string,
|
||||||
verbose bool,
|
verbose bool,
|
||||||
) {
|
) {
|
||||||
|
@ -81,9 +81,9 @@ func terminalSize() (int, int) {
|
||||||
}
|
}
|
||||||
|
|
||||||
type packages struct {
|
type packages struct {
|
||||||
|
desc string
|
||||||
names []string
|
names []string
|
||||||
pad int
|
pad int
|
||||||
desc string
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func parsePackages(lines []string, desc string) *packages {
|
func parsePackages(lines []string, desc string) *packages {
|
||||||
|
@ -171,12 +171,14 @@ func (o *Oizys) GitPull() {
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
|
|
||||||
if cmdOutput, err := o.git("pull").CombinedOutput(); err != nil {
|
cmdOutput, err = o.git("pull").CombinedOutput()
|
||||||
|
if err != nil {
|
||||||
showFailedOutput(cmdOutput)
|
showFailedOutput(cmdOutput)
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
func parseDryRun(buf string) (*packages, *packages) {
|
func parseDryRun(buf string) (*packages, *packages) {
|
||||||
lines := strings.Split(strings.TrimSpace(buf), "\n")
|
lines := strings.Split(strings.TrimSpace(buf), "\n")
|
||||||
var parts [2][]string
|
var parts [2][]string
|
||||||
|
|
Loading…
Reference in a new issue