File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -249,8 +249,12 @@ func (w *Workflow) printGenerationOverview(ctx context.Context) error {
249
249
additionalLines = append (additionalLines , "Review all targets with `speakeasy status`." )
250
250
}
251
251
252
- if t .CodeSamples != nil {
252
+ // Covers the case where code samples are configured to be written to a local file
253
+ if t .CodeSamples != nil && t .CodeSamples .Output != "" {
253
254
additionalLines = append (additionalLines , fmt .Sprintf ("Code samples overlay file written to %s" , t .CodeSamples .Output ))
255
+ // Covers the case where code samples are configured to be published to a registry URI
256
+ } else if t .CodeSamples != nil && t .CodeSamples .Registry != nil {
257
+ additionalLines = append (additionalLines , fmt .Sprintf ("Code samples uploaded to: %s" , string (t .CodeSamples .Registry .Location )))
254
258
}
255
259
256
260
if len (w .criticalWarns ) > 0 {
You can’t perform that action at this time.
0 commit comments