more TODO's

This commit is contained in:
Serge Smertin 2022-05-16 12:50:50 +02:00
parent 82e80bd415
commit 1b38687e2d
4 changed files with 5 additions and 1 deletions

View File

@ -23,6 +23,7 @@ func loadCliProfiles() (profiles []Answer, err error) {
// invalid profile // invalid profile
continue continue
} }
// TODO: verify these tokens to work, becaus they may be expired
profiles = append(profiles, Answer{ profiles = append(profiles, Answer{
Value: v.Name(), Value: v.Name(),
Details: fmt.Sprintf(`Connecting to "%s" workspace`, host), Details: fmt.Sprintf(`Connecting to "%s" workspace`, host),

View File

@ -55,6 +55,7 @@ type Choice struct {
} }
func (q Choice) Ask(res Results) (string, Answer, error) { func (q Choice) Ask(res Results) (string, Answer, error) {
// TODO: validate and re-ask
prompt := promptui.Select{ prompt := promptui.Select{
Label: q.Label, Label: q.Label,
Items: q.Answers, Items: q.Answers,

View File

@ -30,5 +30,7 @@ var launchCmd = &cobra.Command{
} }
func init() { func init() {
// TODO: detect if we can skip registering
// launch command for DBSQL projects
root.RootCmd.AddCommand(launchCmd) root.RootCmd.AddCommand(launchCmd)
} }

View File

@ -33,7 +33,7 @@ type Assertions struct {
type Project struct { type Project struct {
Name string `json:"name"` // or do default from folder name?.. Name string `json:"name"` // or do default from folder name?..
Profile string `json:"profile,omitempty"` Profile string `json:"profile,omitempty"` // rename?
Isolation Isolation `json:"isolation,omitempty"` Isolation Isolation `json:"isolation,omitempty"`
// TODO: turn to pointer for the easy YAML marshalling // TODO: turn to pointer for the easy YAML marshalling