mirror of https://github.com/databricks/cli.git
more TODO's
This commit is contained in:
parent
82e80bd415
commit
1b38687e2d
|
@ -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),
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue