winget-release
No long description provided.
Installation
dagger install github.com/pjmagee/daggerverse/winget-release@60656fc8f8777fb1785bbb73ba9a56a5d55c62ca
Entrypoint
Return Type
WingetRelease
Example
dagger -m github.com/pjmagee/daggerverse/winget-release@60656fc8f8777fb1785bbb73ba9a56a5d55c62ca call \
func (m *myModule) example() *WingetRelease {
return dag.
WingetRelease()
}
@function
def example() -> dag.WingetRelease:
return (
dag.winget_release()
)
@func()
example(): WingetRelease {
return dag
.wingetRelease()
}
Types
WingetRelease 🔗
isReleasePublished() 🔗
New method to check if release is already published
Return Type
Boolean !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
version | String ! | - | No description provided |
Example
dagger -m github.com/pjmagee/daggerverse/winget-release@60656fc8f8777fb1785bbb73ba9a56a5d55c62ca call \
is-release-published --version string
func (m *myModule) example(ctx context.Context, version string) bool {
return dag.
WingetRelease().
IsReleasePublished(ctx, version)
}
@function
async def example(version: str) -> bool:
return await (
dag.winget_release()
.is_release_published(version)
)
@func()
async example(version: string): Promise<boolean> {
return dag
.wingetRelease()
.isReleasePublished(version)
}
getLatestRelease() 🔗
Return Type
String !
Example
dagger -m github.com/pjmagee/daggerverse/winget-release@60656fc8f8777fb1785bbb73ba9a56a5d55c62ca call \
get-latest-release
func (m *myModule) example(ctx context.Context) string {
return dag.
WingetRelease().
GetLatestRelease(ctx)
}
@function
async def example() -> str:
return await (
dag.winget_release()
.get_latest_release()
)
@func()
async example(): Promise<string> {
return dag
.wingetRelease()
.getLatestRelease()
}
createWingetCommand() 🔗
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
tag | String | - | The version of the release |
tokenPlaceholder | Boolean | - | The token to use for the wingetcreate command |
submit | Boolean | false | Whether to add the --submit |
Example
dagger -m github.com/pjmagee/daggerverse/winget-release@60656fc8f8777fb1785bbb73ba9a56a5d55c62ca call \
create-winget-command
func (m *myModule) example(ctx context.Context) string {
return dag.
WingetRelease().
CreateWingetCommand(ctx)
}
@function
async def example() -> str:
return await (
dag.winget_release()
.create_winget_command()
)
@func()
async example(): Promise<string> {
return dag
.wingetRelease()
.createWingetCommand()
}