Dagger
Search

winget-release

No long description provided.

Installation

dagger install github.com/pjmagee/daggerverse/winget-release@d55776132b5aa02a3c711aaae98ceb1b5d3a3734

Entrypoint

Return Type
WingetRelease
Example
dagger -m github.com/pjmagee/daggerverse/winget-release@d55776132b5aa02a3c711aaae98ceb1b5d3a3734 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
NameTypeDefault ValueDescription
versionString !-No description provided
Example
dagger -m github.com/pjmagee/daggerverse/winget-release@d55776132b5aa02a3c711aaae98ceb1b5d3a3734 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@d55776132b5aa02a3c711aaae98ceb1b5d3a3734 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
NameTypeDefault ValueDescription
tagString -The version of the release
tokenPlaceholderBoolean -The token to use for the wingetcreate command
submitBoolean falseWhether to add the --submit
Example
dagger -m github.com/pjmagee/daggerverse/winget-release@d55776132b5aa02a3c711aaae98ceb1b5d3a3734 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()
}