Closed 012e closed 2 years ago
bud create project
bud new controller anything
bud run
# bud-app/bud/.app/web bud/.app/web/web.go:6:2: imported and not used: "bud-app/bud/.app/controller" | exit status 2
But when I create a project, before step 2, if I add a route with a view bud new controller hello index, there will be no error.
bud new controller hello index
Hah, I hadn't considered the empty case. In general, I find this API confusing. What do you think about: https://github.com/livebud/bud/discussions/143#discussioncomment-2994918?
Reproduce
bud create project
bud new controller anything
(create new route without any views)bud run
will give an error:But when I create a project, before step 2, if I add a route with a view
bud new controller hello index
, there will be no error.