bass
The Bass scripting language (https://bass-lang.org).
Installation
dagger install github.com/vito/bass@6ad2902d4a9011a17efc03c92a45dea3cdb33abc
Entrypoint
Return Type
Bass !
Arguments
Name | Type | Description |
---|---|---|
src | Directory ! | No description provided |
Example
dagger -m github.com/vito/bass@6ad2902d4a9011a17efc03c92a45dea3cdb33abc call \
--src DIR_PATH
func (m *myModule) example(src *Directory) *Bass {
return dag.
Bass(src)
}
@function
def example(src: dagger.Directory) -> dag.Bass:
return (
dag.bass(src)
)
@func()
example(src: Directory): Bass {
return dag
.bass(src)
}
Types
Bass 🔗
src() 🔗
Return Type
Directory !
Example
dagger -m github.com/vito/bass@6ad2902d4a9011a17efc03c92a45dea3cdb33abc call \
--src DIR_PATH src
func (m *myModule) example(src *Directory) *Directory {
return dag.
Bass(src).
Src()
}
@function
def example(src: dagger.Directory) -> dagger.Directory:
return (
dag.bass(src)
.src()
)
@func()
example(src: Directory): Directory {
return dag
.bass(src)
.src()
}
build() 🔗
Return Type
Directory !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
version | String | "dev" | No description provided |
Example
dagger -m github.com/vito/bass@6ad2902d4a9011a17efc03c92a45dea3cdb33abc call \
--src DIR_PATH build
func (m *myModule) example(src *Directory) *Directory {
return dag.
Bass(src).
Build()
}
@function
def example(src: dagger.Directory) -> dagger.Directory:
return (
dag.bass(src)
.build()
)
@func()
example(src: Directory): Directory {
return dag
.bass(src)
.build()
}
repl() 🔗
Return Type
Terminal !
Example
dagger -m github.com/vito/bass@6ad2902d4a9011a17efc03c92a45dea3cdb33abc call \
--src DIR_PATH repl
func (m *myModule) example(src *Directory) *Terminal {
return dag.
Bass(src).
Repl()
}
@function
def example(src: dagger.Directory) -> dag.Terminal:
return (
dag.bass(src)
.repl()
)
@func()
example(src: Directory): Terminal {
return dag
.bass(src)
.repl()
}
unit() 🔗
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
packages | [String ! ] | ["./..."] | No description provided |
goTestFlags | [String ! ] | - | No description provided |
Example
dagger -m github.com/vito/bass@6ad2902d4a9011a17efc03c92a45dea3cdb33abc call \
--src DIR_PATH unit
func (m *myModule) example(src *Directory) *Container {
return dag.
Bass(src).
Unit()
}
@function
def example(src: dagger.Directory) -> dagger.Container:
return (
dag.bass(src)
.unit()
)
@func()
example(src: Directory): Container {
return dag
.bass(src)
.unit()
}
integration() 🔗
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
runtime | String | - | No description provided |
goTestFlags | [String ! ] | - | No description provided |
Example
dagger -m github.com/vito/bass@6ad2902d4a9011a17efc03c92a45dea3cdb33abc call \
--src DIR_PATH integration
func (m *myModule) example(src *Directory) *Container {
return dag.
Bass(src).
Integration()
}
@function
def example(src: dagger.Directory) -> dagger.Container:
return (
dag.bass(src)
.integration()
)
@func()
example(src: Directory): Container {
return dag
.bass(src)
.integration()
}
runUnit() 🔗
Return Type
String !
Example
dagger -m github.com/vito/bass@6ad2902d4a9011a17efc03c92a45dea3cdb33abc call \
--src DIR_PATH run-unit
func (m *myModule) example(ctx context.Context, src *Directory) string {
return dag.
Bass(src).
RunUnit(ctx)
}
@function
async def example(src: dagger.Directory) -> str:
return await (
dag.bass(src)
.run_unit()
)
@func()
async example(src: Directory): Promise<string> {
return dag
.bass(src)
.runUnit()
}
buildkitd() 🔗
Return Type
Service !
Example
dagger -m github.com/vito/bass@6ad2902d4a9011a17efc03c92a45dea3cdb33abc call \
--src DIR_PATH buildkitd
func (m *myModule) example(src *Directory) *Service {
return dag.
Bass(src).
Buildkitd()
}
@function
def example(src: dagger.Directory) -> dagger.Service:
return (
dag.bass(src)
.buildkitd()
)
@func()
example(src: Directory): Service {
return dag
.bass(src)
.buildkitd()
}
devContainer() 🔗
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
home | Interface ! | - | No description provided |
Example
dagger -m github.com/vito/bass@6ad2902d4a9011a17efc03c92a45dea3cdb33abc call \
--src DIR_PATH dev-container
func (m *myModule) example(src *Directory, home ) *Container {
return dag.
Bass(src).
DevContainer(home)
}
@function
def example(src: dagger.Directory, home: ) -> dagger.Container:
return (
dag.bass(src)
.dev_container(home)
)
@func()
example(src: Directory, home: ): Container {
return dag
.bass(src)
.devContainer(home)
}
dev() 🔗
Return Type
Terminal !
Example
dagger -m github.com/vito/bass@6ad2902d4a9011a17efc03c92a45dea3cdb33abc call \
--src DIR_PATH dev
func (m *myModule) example(src *Directory) *Terminal {
return dag.
Bass(src).
Dev()
}
@function
def example(src: dagger.Directory) -> dag.Terminal:
return (
dag.bass(src)
.dev()
)
@func()
example(src: Directory): Terminal {
return dag
.bass(src)
.dev()
}
generate() 🔗
Return Type
Directory !
Example
dagger -m github.com/vito/bass@6ad2902d4a9011a17efc03c92a45dea3cdb33abc call \
--src DIR_PATH generate
func (m *myModule) example(src *Directory) *Directory {
return dag.
Bass(src).
Generate()
}
@function
def example(src: dagger.Directory) -> dagger.Directory:
return (
dag.bass(src)
.generate()
)
@func()
example(src: Directory): Directory {
return dag
.bass(src)
.generate()
}
code() 🔗
Return Type
Directory !
Example
dagger -m github.com/vito/bass@6ad2902d4a9011a17efc03c92a45dea3cdb33abc call \
--src DIR_PATH code
func (m *myModule) example(src *Directory) *Directory {
return dag.
Bass(src).
Code()
}
@function
def example(src: dagger.Directory) -> dagger.Directory:
return (
dag.bass(src)
.code()
)
@func()
example(src: Directory): Directory {
return dag
.bass(src)
.code()
}
base() 🔗
Return Type
Container !
Example
dagger -m github.com/vito/bass@6ad2902d4a9011a17efc03c92a45dea3cdb33abc call \
--src DIR_PATH base
func (m *myModule) example(src *Directory) *Container {
return dag.
Bass(src).
Base()
}
@function
def example(src: dagger.Directory) -> dagger.Container:
return (
dag.bass(src)
.base()
)
@func()
example(src: Directory): Container {
return dag
.bass(src)
.base()
}