Commit Graph

16 Commits

Author SHA1 Message Date
Jose Gil
55a93fac11 cmd: Add --output_file_prefix, which sets a prefix for the output file name "wire_gen.go" 2019-09-25 08:59:48 -07:00
Robert van Gent
b5d7d7864b wire: remove color in wire show (#190)
Fixes #189
2019-05-29 15:02:06 -07:00
Robert van Gent
89bcaa23b9 wire: improve color output to term by using fatih/color (#186) 2019-05-29 11:46:31 -07:00
Robert van Gent
fe01654174 cmd/wire: add a --header_file flag to the "gen" and "diff" commands (#175) 2019-05-16 09:56:42 -07:00
Robert van Gent
d76a979091 wire: use subcommands package, improving help (#173) 2019-05-14 12:51:16 -07:00
shantuo
aeaafca1a6 cmd: support FieldsOf in show (#143) 2019-03-06 16:19:50 -08:00
Robert van Gent
65d810f60a wire: output diffs to stdout, and return 1 for diffs and 2 for trouble from diff subcommand (#90) 2018-11-30 15:14:40 -08:00
Robert van Gent
58d6a2c2c8 wire: add a diff command (google/go-cloud#745) 2018-11-28 11:12:42 -08:00
Robert van Gent
65eb134857 wire: support multiple packages in Generate (google/go-cloud#729) 2018-11-28 11:06:19 -08:00
Robert van Gent
6ea381b3fe wire: give wire.Bind access to the arguments to the injector function (google/go-cloud#715) 2018-11-28 11:02:13 -08:00
Ross Light
30574010a0 Update import path and mirror project docs 2018-11-13 13:16:46 -08:00
Ross Light
64470a2452 wire/internal/wire: use on-disk GOPATH in generate tests (google/go-cloud#616)
The primary motivation is to permit a move to using go/packages instead
of go/loader. go/packages runs exclusively by shelling out to the go
tool, which precludes use of the in-memory "magic" GOPATH being used
up to this point.

This has a secondary effect of removing a lot of code to support "magic"
GOPATH from the test infrastructure. This is on the whole good, but
necessitated a change in the error scrubbing: since the filenames are
no longer fixed, error scrubbing also must remove the leading
$GOPATH/src lines.

Another related change: since all callers of Generate needed to know the
package path in order to write out wire_gen.go (necessitating a
find-only import search) and Generate already has this information,
Generate now returns this information to the caller. This should further
reduce callers' coupling to Wire's load internals. It also eliminates
code duplication.

This should hopefully shake out any difference in path separators for
running on Windows, but I have not tested that yet.

Updates google/go-cloud#78
Updates google/go-cloud#323
2018-11-13 13:16:46 -08:00
Ross Light
eedae3d8d0 all: change copyright notice to The Go Cloud Authors (google/go-cloud#306)
Added AUTHORS+CONTRIBUTORS files with the contributors already present
from the Git log.

Fixes google/go-cloud#225
2018-11-13 13:16:46 -08:00
Robert van Gent
3a3760180d wire: fill in ProviderSet.VarName when the set is a package variable (google/go-cloud#279)
Rename ProviderSet.Name to ProviderSet.VarName.

Fixes google/go-cloud#277
2018-11-13 13:16:46 -08:00
Issac Trotts
d214fc499d wire: show help when requested (google/go-cloud#238)
For now, it just shows usage.
2018-11-13 13:16:45 -08:00
Ross Light
1de1d101c7 wire/cmd/wire: rename from gowire (google/go-cloud#217)
@cflewis and @bradfitz were right: drop the "go". It's cleaner.
2018-11-13 13:16:45 -08:00