cmd

package
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Copyright © 2023 Alejandro Menocal

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ActionsPin

func ActionsPin(cmd *cobra.Command, args []string)

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func GetActionHashByVersion

func GetActionHashByVersion(repository string, version string) (string, string, error)

func GetBranchHash added in v0.0.3

func GetBranchHash(repository string, branch string) (string, error)

func GetLatestPatchVersion

func GetLatestPatchVersion(repository string, version string) (string, error)

Types

type Job

type Job struct {
	Steps []Step `yaml:"steps"`
}

type Step

type Step struct {
	Name string `yaml:"name"`
	Uses string `yaml:"uses"`
}

type Workflow

type Workflow struct {
	Jobs map[string]Job `yaml:"jobs"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL