mirror of
https://github.com/opbnq-q/nto-cli.git
synced 2025-12-06 17:20:34 +07:00
17 lines
300 B
Go
17 lines
300 B
Go
package utils
|
|
|
|
import (
|
|
"os"
|
|
"path/filepath"
|
|
"strings"
|
|
)
|
|
|
|
func IsEntityImplemented(entityName string) bool {
|
|
entityDirectory := filepath.Join(FindFrontendPath(), strings.ToLower(entityName))
|
|
if _, err := os.Stat(entityDirectory); os.IsNotExist(err) {
|
|
return false
|
|
} else {
|
|
return true
|
|
}
|
|
}
|