tangled
alpha
login
or
join now
fuwn.net
/
yae
0
fork
atom
⛩️ Powerful yet Minimal Nix Dependency Manager
flake
flakes
home-manager
nixos
go
nix
dependency
dependencies
0
fork
atom
overview
issues
pulls
pipelines
feat(yae): add file not found and init information
fuwn.net
1 year ago
7df9be2d
27af3b90
verified
This commit was signed with the committer's
known signature
.
fuwn.net
SSH Key Fingerprint:
SHA256:VPdFPyPbd6JkoMyWUdZ/kkTcIAt3sxjXD2XSAZ7FYC4=
+10
-1
1 changed file
expand all
collapse all
unified
split
yae.go
+10
-1
yae.go
···
30
30
return nil
31
31
}
32
32
33
33
-
return sources.Load(c.String("sources"))
33
33
+
location := c.String("sources")
34
34
+
35
35
+
if _, err := os.Stat(location); os.IsNotExist(err) {
36
36
+
return fmt.Errorf(
37
37
+
"file `%s` was not present, run `yae init` to create it",
38
38
+
location,
39
39
+
)
40
40
+
}
41
41
+
42
42
+
return sources.Load(location)
34
43
},
35
44
Flags: []cli.Flag{
36
45
&cli.StringFlag{