MCPcopy
hub / github.com/larksuite/cli / markdownFlagExplicitlyEmpty

Function markdownFlagExplicitlyEmpty

shortcuts/markdown/helpers.go:151–153  ·  view source on GitHub ↗
(runtime *common.RuntimeContext, flagName string)

Source from the content-addressed store, hash-verified

149}
150
151func markdownFlagExplicitlyEmpty(runtime *common.RuntimeContext, flagName string) bool {
152 return runtime.Changed(flagName) && strings.TrimSpace(runtime.Str(flagName)) == ""
153}
154
155func validateMarkdownFileName(name, flagName string) error {
156 trimmed := strings.TrimSpace(name)

Callers 1

validateMarkdownSpecFunction · 0.85

Calls 2

ChangedMethod · 0.65
StrMethod · 0.65

Tested by

no test coverage detected