-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add new input model, use in projects step #30
Conversation
This pull request has been linked to Shortcut Story #235547: Create stubbed out setup command to act as a prototype. |
// we need to cast this to get the data out of it, but maybe we can create our own interface with | ||
// common values such as Choice() and Err() so we don't have to cast | ||
p, ok := projModel.(projectModel) | ||
if ok { | ||
if p.err != nil { | ||
m.err = p.err | ||
return m, nil | ||
} | ||
} | ||
// update projModel with the fetched projects | ||
m.steps[projectsStep] = projModel | ||
// go to the next step |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i don't think we actually needed to do this casting here
// we need to cast this to get the data out of it, but maybe we can create our own interface with | ||
// common values such as Choice() and Err() so we don't have to cast |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but we do need to do it here so i moved that comment down
Adds a new re-usable input model and adds it to the projects step.
ld-cli-set-new-project.mov