godna

command module
v1.15.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 25, 2019 License: MIT Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Golang DNA cli - godna

Usage - godna generate -h


  Usage: godna generate [options] <output-dir>

  output directory eg .

  Options:
  --step-all, -s             run all steps (step-protoc, step-gomod-all, step-git-all)
  --step-protoc, -p          run the protoc
                              (default true)
  --step-gomod-all, -m       run all go mod steps. Overrides the individual steps (ie or-ed)
  --step-gomod-init          go mod init for all specified go modules.
                             Does not overwrite existing go.mod files.
                             ie containing
                             	import "dna/store.v1.proto";
                             	option (wxio.dna.store) = {
                             		go_mod : true
                             	};
                             store.v1.proto usually stored in vendor/wxio
  --step-gomod-cfg           go mod edit -require <specified in config>
  --step-gomod-local         need for local dev & tidy.
                             go mod edit -replace <proto import>=../[../]*/<local code>
  --step-gomod-tidy          go mod tidy
  --step-gomod-version       go mod edit -dropreplace & -require for imported modules
  --step-git-all, -g         git add, commit & tag
  --step-git-add             git add
  --step-git-add-commit      git add & commit
  --step-git-add-commit-tag  git add, commit & tag
  --help, -h                 display help

Example Config

.dna-cfg.ptron

src_dir    : "../dna"
go_package_prefix : "github.com/wxio/godna"
includes  : [
	"../dna/store",
	"../dna/vendor/googleapis",
	"../dna/vendor/grpc_gateway"
]
plugin_output_dir : <
	path: "."
	generator : < plugin : < go : < 
		paths: Source_Relative
	>>>
>

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
pb

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址