WIP: spec out first steps for app new command

This commit is contained in:
decentral1se 2021-07-29 12:26:11 +02:00
parent e4ed2aeebf
commit d422902e09
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
1 changed files with 14 additions and 4 deletions

View File

@ -52,10 +52,20 @@ locally in a pass store (see passwordstore.org for more).
return nil
}
// TODO:
// ensure ABRA_DIR exists
// get the apps_json
// get the servers list
config.EnsureAbraDirExists()
appFiles, err := config.LoadAppFiles()
if err != nil {
logrus.Fatal(err)
}
servers := appFiles.GetServers()
catl, err := catalogue.ReadAppsCatalogue()
if err != nil {
logrus.Fatal(err)
}
// select latest version of recipe from apps_json
// prompt to choose server if not provided
// prompt to choose domain name if not provided