MCPcopy Index your code
hub / github.com/docker/docker-agent / ExportHTML

Method ExportHTML

pkg/app/app.go:1445–1448  ·  view source on GitHub ↗

ExportHTML exports the current session as a standalone HTML file. If filename is empty, a default name based on the session title and timestamp is used.

(ctx context.Context, filename string)

Source from the content-addressed store, hash-verified

1443// ExportHTML exports the current session as a standalone HTML file.
1444// If filename is empty, a default name based on the session title and timestamp is used.
1445func (a *App) ExportHTML(ctx context.Context, filename string) (string, error) {
1446 agentInfo := a.runtime.CurrentAgentInfo(ctx)
1447 return export.SessionToFile(a.session, agentInfo.Description, filename)
1448}
1449
1450// ErrTitleGenerating is returned when attempting to set a title while generation is in progress.
1451var ErrTitleGenerating = errors.New("title generation in progress, please wait")

Callers 1

handleExportSessionMethod · 0.80

Calls 2

SessionToFileFunction · 0.92
CurrentAgentInfoMethod · 0.65

Tested by

no test coverage detected