fj
No long description provided.
Installation
dagger install codeberg.org/clouds666/daggerverse/fj@0db6959de8b2d7c67a9b426f9793145277d23636Entrypoint
Return Type
Fj !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| token | Secret | - | GitHub token. |
| host | String | - | GitHub host. |
Example
dagger -m codeberg.org/clouds666/daggerverse/fj@0db6959de8b2d7c67a9b426f9793145277d23636 call \
func (m *MyModule) Example() *dagger.Fj {
return dag.
Fj()
}@function
def example() -> dagger.Fj:
return (
dag.fj()
)@func()
example(): Fj {
return dag
.fj()
}Types
Fj 🔗
container() 🔗
Return Type
Container ! Example
dagger -m codeberg.org/clouds666/daggerverse/fj@0db6959de8b2d7c67a9b426f9793145277d23636 call \
containerfunc (m *MyModule) Example() *dagger.Container {
return dag.
Fj().
Container()
}@function
def example() -> dagger.Container:
return (
dag.fj()
.container()
)@func()
example(): Container {
return dag
.fj()
.container()
}exec() 🔗
Run a Forgejo CLI command (accepts a list of arguments without “fj”).
Return Type
Container !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| args | [String ! ] ! | - | Arguments to pass to Forgejo CLI. |
Example
dagger -m codeberg.org/clouds666/daggerverse/fj@0db6959de8b2d7c67a9b426f9793145277d23636 call \
exec --args string1 --args string2func (m *MyModule) Example(args []string) *dagger.Container {
return dag.
Fj().
Exec(args)
}@function
def example(args: List[str]) -> dagger.Container:
return (
dag.fj()
.exec(args)
)@func()
example(args: string[]): Container {
return dag
.fj()
.exec(args)
}release() 🔗
Manage releases.
Return Type
Release ! Example
dagger -m codeberg.org/clouds666/daggerverse/fj@0db6959de8b2d7c67a9b426f9793145277d23636 call \
releasefunc (m *MyModule) Example() *dagger.FjRelease {
return dag.
Fj().
Release()
}@function
def example() -> dagger.FjRelease:
return (
dag.fj()
.release()
)@func()
example(): FjRelease {
return dag
.fj()
.release()
}Release 🔗
create() 🔗
Create a new GitHub Release for a repository.
Return Type
Void !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| repo | String ! | - | GitHub repository (e.g. “owner/repo”). |
| title | String ! | - | Release title. |
| tag | String ! | - | Tag this release should point to or create. |
| files | [File ! ] | - | Release assets to upload. |
| draft | Boolean | - | Save the release as a draft instead of publishing it. |
| preRelease | Boolean | - | Mark the release as a prerelease. |
| body | String | - | Release notes. |
Example
dagger -m codeberg.org/clouds666/daggerverse/fj@0db6959de8b2d7c67a9b426f9793145277d23636 call \
release \
create --repo string --title string --tag stringfunc (m *MyModule) Example(ctx context.Context, repo string, title string, tag string) {
return dag.
Fj().
Release().
Create(ctx, repo, title, tag)
}@function
async def example(repo: str, title: str, tag: str) -> None:
return await (
dag.fj()
.release()
.create(repo, title, tag)
)@func()
async example(repo: string, title: string, tag: string): Promise<void> {
return dag
.fj()
.release()
.create(repo, title, tag)
}