From e0d86a7662073fd62a509cfeb5ba14ad08d9039b Mon Sep 17 00:00:00 2001 From: Ryan McGuire Date: Sun, 10 Dec 2023 10:14:02 -0500 Subject: [PATCH] Fix first-time alias add --- cmd/project.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/project.go b/cmd/project.go index 92301e4..cf4ba3c 100644 --- a/cmd/project.go +++ b/cmd/project.go @@ -58,7 +58,7 @@ func init() { } func mustHaveProjects(cmd *cobra.Command, args []string) { - if len(cache.Aliases) == 0 { + if len(cache.Projects) == 0 { plog.Fatal("No projects to " + cmd.Name() + ", try running cache load") } }