fix(goal): show area in no-goals msg when default

Amolith created

Assisted-by: Claude Sonnet 4 via Crush

Change summary

cmd/goal/list.go | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

Detailed changes

cmd/goal/list.go 🔗

@@ -45,6 +45,7 @@ func runList(cmd *cobra.Command, _ []string) error {
 
 	areaKey, _ := cmd.Flags().GetString("area")
 	showAll, _ := cmd.Flags().GetBool("all")
+	usingDefault := areaKey == "" && !showAll && cfg.Defaults.Area != ""
 
 	areas := filterAreas(cfg, areaKey, showAll)
 	if len(areas) == 0 {
@@ -55,7 +56,11 @@ func runList(cmd *cobra.Command, _ []string) error {
 
 	goals := collectGoals(areas)
 	if len(goals) == 0 {
-		fmt.Fprintln(cmd.OutOrStdout(), "No goals configured")
+		if usingDefault {
+			fmt.Fprintf(cmd.OutOrStdout(), "No goals configured in %s area\n", cfg.Defaults.Area)
+		} else {
+			fmt.Fprintln(cmd.OutOrStdout(), "No goals configured")
+		}
 
 		return nil
 	}