spkenv / spk

A Package Manager for high velocity software environments, built on spfs.
https://spkenv.dev
Apache License 2.0
38 stars 6 forks source link

Always find the .spk.yaml when there is just one #178

Open lgritz opened 3 years ago

lgritz commented 3 years ago

When you run "spk build", you can specify an .spk.yaml file, but if you neglect to do so and there is only one .spk.yaml in the current directory, it will just use it. This is a great default behvior!

But many other spk commands don't do this. For example, "spk mkb", even though it conceptually is a minor variant of build, will give an error about missing arguments. This is needless friction.

All commands that expect an .spk.yaml file should work like build, just working as expected if there's only one .spk.yaml file in the cwd.

rydrman commented 3 years ago

Makes sense to me - this is definitely something I run into myself and just haven't taken the time to fix TBH