1 Commits

Author SHA1 Message Date
renovate[bot]
a8063a65ee Update actions/checkout action to v4 2023-10-05 22:03:55 +00:00
4 changed files with 2 additions and 55 deletions

View File

@@ -36,7 +36,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Prepare
id: prep

View File

@@ -20,7 +20,7 @@ jobs:
steps:
- uses: earthly/actions-setup@v1.0.8
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Build

View File

@@ -1,42 +0,0 @@
package cmd
import (
"fmt"
"github.com/kairos-io/enki/pkg/action"
"github.com/spf13/cobra"
)
// NewFindMatchingFrameworkCmd returns a new instance of the build-iso subcommand and appends it to
// the root command.
func NewFindMatchingFrameworkCmd() *cobra.Command {
c := &cobra.Command{
Use: "find-matching-framework",
Short: "Finds the framework image that matches the current OS best",
Long: "Finds the framework image that matches the current OS best\n" +
"This is best effort and might return a framework image that doesn't work.\n" +
"It is expected to work with the official Kairos flavors.",
Args: cobra.ExactArgs(0),
PreRunE: func(cmd *cobra.Command, args []string) error {
//return CheckRoot() // TODO: Do we need this?
return nil
},
RunE: func(cmd *cobra.Command, args []string) error {
a := action.NewFindMatchingFrameworkAction()
result, err := a.Run()
if err != nil {
return err
}
fmt.Println(result)
return nil
},
}
return c
}
func init() {
rootCmd.AddCommand(NewFindMatchingFrameworkCmd())
}

View File

@@ -1,11 +0,0 @@
package action
type FindMatchingFrameworkAction struct{}
func NewFindMatchingFrameworkAction() *FindMatchingFrameworkAction {
return &FindMatchingFrameworkAction{}
}
func (a *FindMatchingFrameworkAction) Run() (framework string, err error) {
return
}