greetings
No long description provided.
Installation
dagger install github.com/kpenfound/greetings-api@7951e319ef45adfd21967746c526da0f7fb11498Entrypoint
Return Type
Greetings !Arguments
| Name | Type | Default Value | Description | 
|---|---|---|---|
| source | Directory | - | No description provided | 
| repo | String | "github.com/kpenfound/greetings-api" | No description provided | 
| image | String | "kylepenfound/greetings-api:latest" | No description provided | 
| app | String | "dagger-demo" | No description provided | 
Example
dagger -m github.com/kpenfound/greetings-api@7951e319ef45adfd21967746c526da0f7fb11498 call \
func (m *MyModule) Example() *dagger.Greetings  {
	return dag.
			Greetings()
}@function
def example() -> dagger.Greetings:
	return (
		dag.greetings()
	)@func()
example(): Greetings {
	return dag
		.greetings()
}Types
Greetings 🔗
debugTests() 🔗
Debug broken tests. Returns a unified diff of the test fixes
Return Type
String !Arguments
| Name | Type | Default Value | Description | 
|---|---|---|---|
| model | String | - | The model to use to debug debug tests +default = "gemini-2.0-flash" | 
Example
dagger -m github.com/kpenfound/greetings-api@7951e319ef45adfd21967746c526da0f7fb11498 call \
 debug-testsfunc (m *MyModule) Example(ctx context.Context) string  {
	return dag.
			Greetings().
			DebugTests(ctx)
}@function
async def example() -> str:
	return await (
		dag.greetings()
		.debug_tests()
	)@func()
async example(): Promise<string> {
	return dag
		.greetings()
		.debugTests()
}debugBrokenTestsPr() 🔗
Debug broken tests on a pull request and comment fix suggestions
Return Type
Void !Arguments
| Name | Type | Default Value | Description | 
|---|---|---|---|
| githubToken | Secret ! | - | Github token with permissions to comment on the pull request | 
| commit | String ! | - | Git commit in Github | 
| model | String | - | The model to use to debug debug tests +default = "gemini-2.0-flash" | 
Example
dagger -m github.com/kpenfound/greetings-api@7951e319ef45adfd21967746c526da0f7fb11498 call \
 debug-broken-tests-pr --github-token env:MYSECRET --commit stringfunc (m *MyModule) Example(ctx context.Context, githubToken *dagger.Secret, commit string)   {
	return dag.
			Greetings().
			DebugBrokenTestsPr(ctx, githubToken, commit)
}@function
async def example(github_token: dagger.Secret, commit: str) -> None:
	return await (
		dag.greetings()
		.debug_broken_tests_pr(github_token, commit)
	)@func()
async example(githubToken: Secret, commit: string): Promise<void> {
	return dag
		.greetings()
		.debugBrokenTestsPr(githubToken, commit)
}develop() 🔗
Complete an assignment for the greetings project and get back the completed work
Return Type
Directory !Arguments
| Name | Type | Default Value | Description | 
|---|---|---|---|
| assignment | String ! | - | The assignment to complete | 
| model | String | - | The model to use to complete the assignment +default = "gemini-2.0-flash" | 
Example
dagger -m github.com/kpenfound/greetings-api@7951e319ef45adfd21967746c526da0f7fb11498 call \
 develop --assignment stringfunc (m *MyModule) Example(assignment string) *dagger.Directory  {
	return dag.
			Greetings().
			Develop(assignment)
}@function
def example(assignment: str) -> dagger.Directory:
	return (
		dag.greetings()
		.develop(assignment)
	)@func()
example(assignment: string): Directory {
	return dag
		.greetings()
		.develop(assignment)
}developPullRequest() 🔗
Return Type
Void !Arguments
| Name | Type | Default Value | Description | 
|---|---|---|---|
| githubToken | Secret ! | - | Github token with permissions to create a pull request | 
| issueId | Integer ! | - | The github issue to complete | 
| model | String | - | The model to use to complete the assignment +default = "gemini-2.0-flash" | 
Example
dagger -m github.com/kpenfound/greetings-api@7951e319ef45adfd21967746c526da0f7fb11498 call \
 develop-pull-request --github-token env:MYSECRET --issue-id integerfunc (m *MyModule) Example(ctx context.Context, githubToken *dagger.Secret, issueId int)   {
	return dag.
			Greetings().
			DevelopPullRequest(ctx, githubToken, issueId)
}@function
async def example(github_token: dagger.Secret, issue_id: int) -> None:
	return await (
		dag.greetings()
		.develop_pull_request(github_token, issue_id)
	)@func()
async example(githubToken: Secret, issueId: number): Promise<void> {
	return dag
		.greetings()
		.developPullRequest(githubToken, issueId)
}check() 🔗
Run the CI Checks for the project
Return Type
String !Arguments
| Name | Type | Default Value | Description | 
|---|---|---|---|
| githubToken | Secret | - | Github token with permissions to comment on the pull request | 
| commit | String | - | git commit in github | 
| model | String | - | The model to use to debug debug tests | 
Example
dagger -m github.com/kpenfound/greetings-api@7951e319ef45adfd21967746c526da0f7fb11498 call \
 checkfunc (m *MyModule) Example(ctx context.Context) string  {
	return dag.
			Greetings().
			Check(ctx)
}@function
async def example() -> str:
	return await (
		dag.greetings()
		.check()
	)@func()
async example(): Promise<string> {
	return dag
		.greetings()
		.check()
}test() 🔗
Run unit tests for the project
Return Type
String !Example
dagger -m github.com/kpenfound/greetings-api@7951e319ef45adfd21967746c526da0f7fb11498 call \
 testfunc (m *MyModule) Example(ctx context.Context) string  {
	return dag.
			Greetings().
			Test(ctx)
}@function
async def example() -> str:
	return await (
		dag.greetings()
		.test()
	)@func()
async example(): Promise<string> {
	return dag
		.greetings()
		.test()
}lint() 🔗
Lint the Go code in the project
Return Type
String !Example
dagger -m github.com/kpenfound/greetings-api@7951e319ef45adfd21967746c526da0f7fb11498 call \
 lintfunc (m *MyModule) Example(ctx context.Context) string  {
	return dag.
			Greetings().
			Lint(ctx)
}@function
async def example() -> str:
	return await (
		dag.greetings()
		.lint()
	)@func()
async example(): Promise<string> {
	return dag
		.greetings()
		.lint()
}build() 🔗
Build the backend and frontend for a specified environment
Return Type
Directory !Example
dagger -m github.com/kpenfound/greetings-api@7951e319ef45adfd21967746c526da0f7fb11498 call \
 buildfunc (m *MyModule) Example() *dagger.Directory  {
	return dag.
			Greetings().
			Build()
}@function
def example() -> dagger.Directory:
	return (
		dag.greetings()
		.build()
	)@func()
example(): Directory {
	return dag
		.greetings()
		.build()
}serve() 🔗
Serve the backend and frontend to 8080 and 8081 respectively
Return Type
Service !Example
dagger -m github.com/kpenfound/greetings-api@7951e319ef45adfd21967746c526da0f7fb11498 call \
 servefunc (m *MyModule) Example() *dagger.Service  {
	return dag.
			Greetings().
			Serve()
}@function
def example() -> dagger.Service:
	return (
		dag.greetings()
		.serve()
	)@func()
example(): Service {
	return dag
		.greetings()
		.serve()
}release() 🔗
Create a GitHub release
Return Type
String !Arguments
| Name | Type | Default Value | Description | 
|---|---|---|---|
| tag | String ! | - | No description provided | 
| ghToken | Secret ! | - | No description provided | 
Example
dagger -m github.com/kpenfound/greetings-api@7951e319ef45adfd21967746c526da0f7fb11498 call \
 release --tag string --gh-token env:MYSECRETfunc (m *MyModule) Example(ctx context.Context, tag string, ghToken *dagger.Secret) string  {
	return dag.
			Greetings().
			Release(ctx, tag, ghToken)
}@function
async def example(tag: str, gh_token: dagger.Secret) -> str:
	return await (
		dag.greetings()
		.release(tag, gh_token)
	)@func()
async example(tag: string, ghToken: Secret): Promise<string> {
	return dag
		.greetings()
		.release(tag, ghToken)
}