Dagger
Search

java-glamour

https://github.com/charmbracelet/glamour

Installation

dagger install github.com/eunomie/java-glamour@2f7b7adee42df310ca2ef0b1b7e945a6462afd5c

Entrypoint

Return Type
JavaGlamour
Example
dagger -m github.com/eunomie/java-glamour@2f7b7adee42df310ca2ef0b1b7e945a6462afd5c call \
func (m *myModule) example() *JavaGlamour  {
	return dag.
			JavaGlamour()
}
@function
def example() -> dag.JavaGlamour:
	return (
		dag.java_glamour()
	)
@func()
example(): JavaGlamour {
	return dag
		.javaGlamour()
}

Types

JavaGlamour 🔗

Print markdown content

markdown() 🔗

Render a markdown string

Return Type
String !
Arguments
NameTypeDefault ValueDescription
contentString !-markdown string to print
Example
dagger -m github.com/eunomie/java-glamour@2f7b7adee42df310ca2ef0b1b7e945a6462afd5c call \
 markdown --content string
func (m *myModule) example(ctx context.Context, content string) string  {
	return dag.
			JavaGlamour().
			Markdown(ctx, content)
}
@function
async def example(content: str) -> str:
	return await (
		dag.java_glamour()
		.markdown(content)
	)
@func()
async example(content: string): Promise<string> {
	return dag
		.javaGlamour()
		.markdown(content)
}

markdownFile() 🔗

Render a markdown file

Return Type
String !
Arguments
NameTypeDefault ValueDescription
fileFile !-file to render the content as markdown
Example
dagger -m github.com/eunomie/java-glamour@2f7b7adee42df310ca2ef0b1b7e945a6462afd5c call \
 markdown-file --file file:path
func (m *myModule) example(ctx context.Context, file *File) string  {
	return dag.
			JavaGlamour().
			MarkdownFile(ctx, file)
}
@function
async def example(file: dagger.File) -> str:
	return await (
		dag.java_glamour()
		.markdown_file(file)
	)
@func()
async example(file: File): Promise<string> {
	return dag
		.javaGlamour()
		.markdownFile(file)
}