This PR sorts the Development and the Runtime packages present in the bsf.hcl in alphabetical order.
This works with both when the buildsafe is initialized and when packages are searched and added to the environment.
Additional
There might be better way of implementing the sortPackages function in the cmd\init\config.go.
As the same logic is used on the both cases. We can put this function to set.go in pkg\strings\set.go
Fixes #126 Closes #126
Description
This PR sorts the Development and the Runtime packages present in the
bsf.hcl
in alphabetical order. This works with both when the buildsafe is initialized and when packages are searched and added to the environment.Additional
There might be better way of implementing the
sortPackages
function in thecmd\init\config.go
. As the same logic is used on the both cases. We can put this function toset.go
inpkg\strings\set.go