-
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
fix: embed instructions files & show error during show sdk step #174
Conversation
if m.instructions == "" || m.environment == nil { | ||
return m.spinner.View() + fmt.Sprintf(" Fetching %s SDK instructions...", m.displayName) | ||
return m.spinner.View() + fmt.Sprintf(" Fetching %s SDK instructions...\n", m.displayName) + footerView(m.help.View(m.helpKeys), nil) |
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.
added the footer view here as well
@@ -63,7 +65,6 @@ func NewShowSDKInstructionsModel( | |||
PaddingRight(2) | |||
|
|||
h := help.New() | |||
h.ShowAll = true |
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.
only showing full help when showing the instructions
//go:embed sdk_instructions/*.md | ||
var InstructionFiles embed.FS | ||
|
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.
main change
Do we have to run 'go generate' or something similar now? |
nope shouldn't have to! |
The new instruction files weren't readable from the binary, so now we are embedding them!
Also this error was getting swallowed, resulting in an infinite spinner, so if something goes wrong with reading the file (or fetching the env) we'll now surface that too.