We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28bbc8f commit 6a45090Copy full SHA for 6a45090
cmd/struct.go
@@ -53,6 +53,10 @@ func (s *Script) IsExecutable() bool {
53
// function aims to return early and perform as little work as possible
54
// to avoid reading the entire file and stay performant
55
// with large script folders and files
56
+// Further improvement can be had by detaching the
57
+// parsing of the usage from the parsing of help
58
+// This would benefit the case of rendering help and completions
59
+// where the usage is needed but the help is not
60
func (s *Script) ParseV2() (string, string, error) {
61
log.Debugw("Parsing script", "path", s.path)
62
file, err := os.Open(s.path)
0 commit comments