MCPcopy Index your code

hub / github.com/OpenSLO/oslo / functions

Functions25 in github.com/OpenSLO/oslo

↓ 5 callersFunctionreadRawSchema
readRawSchema reads raw OpenSLO schema from file path, HTTP address or stdin (path "-") to a byte slice.
internal/files/reader.go:49
↓ 3 callersFunctionDiscover
Discover returns all file paths that come from file paths provided as the argument. Return directly if they are standard files. For directories list a
internal/files/discover.go:15
↓ 3 callersFunctionprintStderr
(err any)
internal/cli/validate.go:75
↓ 2 callersFunctionFormat
Format formats multiple files and writes it to the provided writer, separated with "---".
internal/files/format.go:11
↓ 2 callersFunctionNewRootCmd
(version string)
internal/cli/root.go:7
↓ 2 callersFunctionindentString
(s string, i int)
internal/cli/validate.go:66
↓ 2 callersFunctionisStdin
(p string)
internal/files/reader.go:67
↓ 2 callersFunctionisURL
(p string)
internal/files/reader.go:71
↓ 2 callersFunctionreadObjectsFromRawData
readObjectsFromRawData reads [openslo.Object] from a byte slice.
internal/files/reader.go:40
↓ 2 callersFunctionregisterFileRelatedFlags
registerFileRelatedFlags registers flags --file | -f and --recursive | -R for command passed as the argument and make them required.
internal/cli/flags.go:7
↓ 1 callersFunctionNewFmtCmd
NewFmtCmd returns a new command for formatting a file.
internal/cli/fmt.go:13
↓ 1 callersFunctionNewValidateCmd
NewValidateCmd returns a new cobra.Command for the validate command.
internal/cli/validate.go:19
↓ 1 callersFunctionReadObjects
ReadObjects reads [openslo.Object] from the provided sources. It returns a map where the key is a file path and the value are objects read form this f
internal/files/reader.go:19
↓ 1 callersFunctionformat
()
internal/scripts/format-cspell-config.js:11
↓ 1 callersFunctionformatFile
formatFile formats a single formatFile and writes it to the provided writer.
internal/files/format.go:26
↓ 1 callersFunctiongetBuildVersion
(version string)
cmd/oslo/main.go:20
↓ 1 callersFunctiongetRuntimeVersion
()
cmd/oslo/main.go:27
↓ 1 callersFunctionisJSONBuffer
isJSONBuffer scans the provided buffer, looking for an open brace indicating this is JSON. While a simple list like ["a", "b", "c"] is still a valid J
internal/files/reader.go:80
↓ 1 callersFunctionreadObjectsFromSource
(source string)
internal/files/reader.go:31
FunctionFindModuleRoot
FindModuleRoot finds the root of the current module. It does so by looking for a go.mod file in the current working directory.
internal/pathutils/pathutils.go:16
FunctionTestDiscoverFilePaths
TestDiscoverFilePaths tests it on real filesystem, content of those file doesn't matter, thus they're empty.
internal/files/discover_test.go:14
FunctionTestFormatFiles
(t *testing.T)
internal/files/format_test.go:14
FunctionTestNewRootCmd
nolint:lll
internal/cli/root_test.go:11
FunctionTestReadConf
(t *testing.T)
internal/files/reader_test.go:16
Functionmain
()
cmd/oslo/main.go:15