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