Dagger
Search

booklit

Package main provides CI/CD functions for the booklit project.

Installation

dagger install github.com/vito/booklit@50367f7b62b35866b9c0dd30bff25a41e1b39c1b

Entrypoint

Return Type
Booklit !
Arguments
NameTypeDefault ValueDescription
sourceDirectory -No description provided
Example
dagger -m github.com/vito/booklit@50367f7b62b35866b9c0dd30bff25a41e1b39c1b call \
func (m *MyModule) Example() *dagger.Booklit  {
	return dag.
			Booklit()
}
@function
def example() -> dagger.Booklit:
	return (
		dag.booklit()
	)
@func()
example(): Booklit {
	return dag
		.booklit()
}

Types

Booklit 🔗

Booklit represents the main Dagger module for the booklit project

build() 🔗

Build builds the booklit binary, with an optional version. Returns the directory containing the built binary.

Return Type
Directory !
Arguments
NameTypeDefault ValueDescription
versionString -No description provided
Example
dagger -m github.com/vito/booklit@50367f7b62b35866b9c0dd30bff25a41e1b39c1b call \
 build
func (m *MyModule) Example() *dagger.Directory  {
	return dag.
			Booklit().
			Build()
}
@function
def example() -> dagger.Directory:
	return (
		dag.booklit()
		.build()
	)
@func()
example(): Directory {
	return dag
		.booklit()
		.build()
}

test() 🔗

Test runs all Go tests in the project.

Return Type
String !
Example
dagger -m github.com/vito/booklit@50367f7b62b35866b9c0dd30bff25a41e1b39c1b call \
 test
func (m *MyModule) Example(ctx context.Context) string  {
	return dag.
			Booklit().
			Test(ctx)
}
@function
async def example() -> str:
	return await (
		dag.booklit()
		.test()
	)
@func()
async example(): Promise<string> {
	return dag
		.booklit()
		.test()
}

lint() 🔗

Lint runs golangci-lint against all Go code.

Return Type
String !
Example
dagger -m github.com/vito/booklit@50367f7b62b35866b9c0dd30bff25a41e1b39c1b call \
 lint
func (m *MyModule) Example(ctx context.Context) string  {
	return dag.
			Booklit().
			Lint(ctx)
}
@function
async def example() -> str:
	return await (
		dag.booklit()
		.lint()
	)
@func()
async example(): Promise<string> {
	return dag
		.booklit()
		.lint()
}