Add version and fix port search.

This commit is contained in:
2024-08-28 12:42:07 +02:00
parent 63cd51f891
commit e276649fc5
3 changed files with 11 additions and 5 deletions

View File

@ -20,8 +20,9 @@ func main() {
conf.LoadConfig(".hoster.yml")
app := &cli.App{
Name: "hoster",
Usage: "Hoster",
Name: "hoster",
Usage: "Hoster",
Version: "1.0.0",
Commands: []*cli.Command{
{
Name: "new",
@ -50,7 +51,7 @@ func main() {
projectFolder := filepath.Join(projectRoot, name)
existingProjects, err := helpers.FindHostConfigs(sitesEnabled)
existingProjects, err := helpers.FindHostConfigs(sitesAvail)
if err != nil {
return err
}