add todos

This commit is contained in:
Ildar Kamalov
2025-08-26 12:54:27 +03:00
parent febcc68147
commit 0e3692f9a0
5 changed files with 30 additions and 0 deletions

View File

@@ -27,9 +27,11 @@ import (
const (
twoskyConfFile = "./.twosky.json"
// TODO: Update localesDir to "./client_v2/src/__locales" for new frontend migration
localesDir = "./client/src/__locales"
defaultBaseFile = "en.json"
defaultProjectID = "home"
// TODO: Update srcDir to "./client_v2/src" for new frontend migration
srcDir = "./client/src"
twoskyURI = "https://twosky.int.agrd.dev/api/v1"
@@ -77,6 +79,8 @@ func main() {
usage("")
}
// TODO: Support multiple projects in .twosky.json - add PROJECT_ID env var to select between 'home' and 'home_v2'
// TODO: Modify readTwoskyConfig() to return all configs and add selectProject() function
conf := errors.Must(readTwoskyConfig())
var cli *twoskyClient
@@ -106,6 +110,7 @@ func main() {
// usage prints usage. If addStr is not empty print addStr and exit with code
// 1, otherwise exit with code 0.
func usage(addStr string) {
// TODO: Add PROJECT_ID environment variable documentation when multi-project support is implemented
const usageStr = `Usage: go run main.go <command> [<args>]
Commands:
help
@@ -161,6 +166,7 @@ func readTwoskyConfig() (t *twoskyConfig, err error) {
return nil, fmt.Errorf("%q is empty", twoskyConfFile)
}
// TODO: Currently only uses first project - modify to support project selection
conf := tsc[0]
for _, lang := range conf.Languages {