mirror of
https://github.com/magefile/mage.git
synced 2026-10-24 06:19:18 +03:00
This change adds `sanitizeSynopsis()` function to perform basic sanitization on the synopsis. If synopsis begins with the function name, it removes the function to avoid repeating words.
10 lines
156 B
Go
10 lines
156 B
Go
// +build mage
|
|
|
|
package main
|
|
|
|
// RepeatingSynopsis chops off the repeating function name.
|
|
// Some more text.
|
|
func RepeatingSynopsis() error {
|
|
return nil
|
|
}
|