linguist
No long description provided.
Installation
dagger install github.com/helderco/daggerverse/linguist@2b3439af53ac0232a39b3589dc65bf3fb171c2e4Entrypoint
Return Type
Linguist Example
dagger -m github.com/helderco/daggerverse/linguist@2b3439af53ac0232a39b3589dc65bf3fb171c2e4 call \
func (m *MyModule) Example() *dagger.Linguist {
return dag.
Linguist()
}@function
def example() -> dagger.Linguist:
return (
dag.linguist()
)@func()
example(): Linguist {
return dag
.linguist()
}Types
Linguist 🔗
Build Linguist and analyze a git repository
src() 🔗
The directory containing the source code to analyze
Return Type
Directory ! Example
dagger -m github.com/helderco/daggerverse/linguist@2b3439af53ac0232a39b3589dc65bf3fb171c2e4 call \
srcfunc (m *MyModule) Example() *dagger.Directory {
return dag.
Linguist().
Src()
}@function
def example() -> dagger.Directory:
return (
dag.linguist()
.src()
)@func()
example(): Directory {
return dag
.linguist()
.src()
}repo() 🔗
The Linguist GitHub repository to build
Return Type
String Example
dagger -m github.com/helderco/daggerverse/linguist@2b3439af53ac0232a39b3589dc65bf3fb171c2e4 call \
repofunc (m *MyModule) Example(ctx context.Context) string {
return dag.
Linguist().
Repo(ctx)
}@function
async def example() -> str:
return await (
dag.linguist()
.repo()
)@func()
async example(): Promise<string> {
return dag
.linguist()
.repo()
}commit() 🔗
The Git commit for the Linguist repository to use
Return Type
String Example
dagger -m github.com/helderco/daggerverse/linguist@2b3439af53ac0232a39b3589dc65bf3fb171c2e4 call \
commitfunc (m *MyModule) Example(ctx context.Context) string {
return dag.
Linguist().
Commit(ctx)
}@function
async def example() -> str:
return await (
dag.linguist()
.commit()
)@func()
async example(): Promise<string> {
return dag
.linguist()
.commit()
}run() 🔗
Run the github-linguist tool on the source code
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| file | String | "" | No description provided |
| rev | String | "" | No description provided |
| breakdown | Boolean | false | No description provided |
| json | Boolean | false | No description provided |
Example
dagger -m github.com/helderco/daggerverse/linguist@2b3439af53ac0232a39b3589dc65bf3fb171c2e4 call \
runfunc (m *MyModule) Example(ctx context.Context) string {
return dag.
Linguist().
Run(ctx)
}@function
async def example() -> str:
return await (
dag.linguist()
.run()
)@func()
async example(): Promise<string> {
return dag
.linguist()
.run()
}