Answer prose round 1: the CLI decision says what keeping cli off internal/ buys, the changelog and Library sentences hold one idea each, and item 185 names the three wordings its builder rules on
This commit is contained in:
+5
-5
@@ -1,6 +1,6 @@
|
||||
// Package cli is the fejkdata command: it renders the template on its stdin with fake
|
||||
// values from the modules it is given and any directories layered over them. A program
|
||||
// passing its own modules to Main is a fejkdata CLI carrying them, as
|
||||
// passing its own modules to Main is a fejkdata CLI carrying them, for example
|
||||
// os.Exit(cli.Main(append(data.Modules(), mydata)...)).
|
||||
package cli
|
||||
|
||||
@@ -544,8 +544,8 @@ func spacedReference(template string, err error) error {
|
||||
return err
|
||||
}
|
||||
|
||||
// piped is the command piping template to the command name; some shells' echo reads a
|
||||
// backslash as an escape, so a template holding one goes through printf.
|
||||
// piped is the command piping template into the command called name; some shells' echo
|
||||
// reads a backslash as an escape, so a template holding one goes through printf.
|
||||
func piped(template, name string) string {
|
||||
if strings.ContainsRune(template, '\\') {
|
||||
return "printf '%s' " + shellQuoted(template) + " | " + name
|
||||
@@ -673,8 +673,8 @@ func report(stderr io.Writer, name string, err error) {
|
||||
// the module's.
|
||||
var fejkdataModule = reflect.TypeOf((*fejkdata.Generator)(nil)).Elem().PkgPath()
|
||||
|
||||
// versionLine names the fejkdata version the binary is built with, after the main module's
|
||||
// version under the command name where another module's main package carries the CLI.
|
||||
// versionLine names the fejkdata version the binary is built with. Where another module's
|
||||
// main package carries the CLI, the main module's version comes first, under the command name.
|
||||
func versionLine(name string, info *debug.BuildInfo) string {
|
||||
if info == nil {
|
||||
return "fejkdata devel"
|
||||
|
||||
+1
-2
@@ -17,8 +17,7 @@ import (
|
||||
)
|
||||
|
||||
// shipped holds the shipped modules as read from the checkout, each folder under ../data
|
||||
// holding a manifest, so these tests link no data package; cmd/fejkdata runs over the
|
||||
// packages themselves.
|
||||
// holding a manifest, so these tests link no data package.
|
||||
var shipped = func() []fs.FS {
|
||||
var modules []fs.FS
|
||||
err := filepath.WalkDir(filepath.Join("..", "data"), func(path string, d fs.DirEntry, err error) error {
|
||||
|
||||
Reference in New Issue
Block a user