1
0
mirror of https://github.com/strongdm/comply synced 2024-07-02 23:14:22 +00:00
This commit is contained in:
Justin McCarthy 2018-05-10 23:23:50 -07:00
parent a383b24a66
commit bb1a7f3f0f
No known key found for this signature in database
GPG Key ID: 900437410E142A48
4 changed files with 31 additions and 3 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
comply
output
dist

View File

@ -3,8 +3,11 @@ GO_SOURCES := $(shell find . -name '*.go')
THEME_SOURCES := $(shell find themes)
assets: $(THEME_SOURCES)
go-bindata-assetfs -pkg theme -prefix themes themes/...
mv bindata_assetfs.go internal/theme/themes_bindata.go
go get github.com/jteeuwen/go-bindata/...
go get github.com/elazarl/go-bindata-assetfs/...
go install github.com/elazarl/go-bindata-assetfs
go-bindata-assetfs -o bindata.go -pkg theme -prefix themes themes/...
mv bindata.go internal/theme/themes_bindata.go
comply: assets $(GO_SOURCES)
go build github.com/strongdm/comply/cmd/comply

22
comply.rb Normal file
View File

@ -0,0 +1,22 @@
class Comply < Formula
desc ""
homepage ""
url "file:///Users/jmccarthy/Downloads/comply-1.1.3.tgz"
sha256 "01f9920e5e9fbd29386e4a4131fac78c002730e49c3f870a0ee2b958c3ce75f6"
depends_on "go" => :build
def install
ENV["GOPATH"] = buildpath
ENV.prepend_create_path "PATH", buildpath/"bin"
(buildpath/"src/github.com/strongdm/comply").install buildpath.children
cd "src/github.com/strongdm/comply" do
system "make", "brew"
bin.install "bin/comply"
end
end
test do
system "#{bin}/sdm", "logout"
end
end

View File

@ -32,7 +32,9 @@ func Main() {
func newApp() *cli.App {
app := cli.NewApp()
app.Name = "comply"
app.HideVersion = true
if Version == "" {
app.HideVersion = true
}
app.Version = Version
app.Usage = "policy compliance toolkit"