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

Function validateMarkdownDiffVersionValue

shortcuts/markdown/markdown_diff.go:114–123  ·  view source on GitHub ↗
(value, flagName string)

Source from the content-addressed store, hash-verified

112}
113
114func validateMarkdownDiffVersionValue(value, flagName string) error {
115 value = strings.TrimSpace(value)
116 if value == "" {
117 return markdownValidationParamError(flagName, "%s cannot be empty", flagName)
118 }
119 if !markdownDiffVersionRe.MatchString(value) {
120 return markdownValidationParamError(flagName, "%s must be a numeric version string", flagName)
121 }
122 return nil
123}
124
125func markdownDiffMode(spec markdownDiffSpec) string {
126 if spec.FilePath != "" {

Callers 1

validateMarkdownDiffSpecFunction · 0.85

Calls 1

Tested by

no test coverage detected