mirror of
https://github.com/LukeHagar/sailpoint-cli.git
synced 2025-12-06 04:21:15 +00:00
PLTCONN-3577: Fix the gitignore file
This commit is contained in:
@@ -17,8 +17,8 @@ import (
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
//go:embed static/*
|
||||
var staticDir embed.FS
|
||||
//go:embed static/connector/*
|
||||
var connectorStaticDir embed.FS
|
||||
|
||||
const (
|
||||
connectorDirName = "connector"
|
||||
@@ -55,7 +55,7 @@ func newConnInitCmd() *cobra.Command {
|
||||
return
|
||||
}
|
||||
|
||||
err := fs.WalkDir(staticDir, connectorTemplatePath, func(path string, d fs.DirEntry, err error) error {
|
||||
err := fs.WalkDir(connectorStaticDir, connectorTemplatePath, func(path string, d fs.DirEntry, err error) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
@@ -71,7 +71,7 @@ func newConnInitCmd() *cobra.Command {
|
||||
} else {
|
||||
fileName := filepath.Join(projName, strings.TrimPrefix(path, connectorTemplatePath))
|
||||
|
||||
data, err := staticDir.ReadFile(path)
|
||||
data, err := connectorStaticDir.ReadFile(path)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
package connector
|
||||
|
||||
import (
|
||||
"embed"
|
||||
"errors"
|
||||
"fmt"
|
||||
"io/fs"
|
||||
@@ -12,6 +13,9 @@ import (
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
//go:embed static/customizer/*
|
||||
var customizerStaticDir embed.FS
|
||||
|
||||
const (
|
||||
customizerDirName = "customizer"
|
||||
customizerTemplatePath = "static/" + customizerDirName
|
||||
@@ -42,7 +46,7 @@ func newCustomizerInitCmd() *cobra.Command {
|
||||
return
|
||||
}
|
||||
|
||||
err := fs.WalkDir(staticDir, customizerTemplatePath, func(path string, d fs.DirEntry, err error) error {
|
||||
err := fs.WalkDir(customizerStaticDir, customizerTemplatePath, func(path string, d fs.DirEntry, err error) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
@@ -58,7 +62,7 @@ func newCustomizerInitCmd() *cobra.Command {
|
||||
} else {
|
||||
fileName := filepath.Join(projName, strings.TrimPrefix(path, customizerTemplatePath))
|
||||
|
||||
data, err := staticDir.ReadFile(path)
|
||||
data, err := customizerStaticDir.ReadFile(path)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user