Skip to content

Commit 685fd13

Browse files
committed
some stuff
1 parent bb330d0 commit 685fd13

12 files changed

+940
-0
lines changed

.acceptance.goreleaser.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
before:
2+
hooks:
3+
- go mod tidy
4+
- go clean -testcache && go test -timeout 30s ./...
5+
builds:
6+
- env:
7+
- CGO_ENABLED=0
8+
- GO111MODULE=on
9+
goos:
10+
- linux
11+
- darwin
12+
goarch:
13+
- amd64
14+
15+
id: "steampipe"
16+
binary: "steampipe"
17+
18+
archives:
19+
- files:
20+
- none*
21+
format: zip
22+
id: homebrew
23+
name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
24+
format_overrides:
25+
- goos: linux
26+
format: tar.gz

.gitmodules

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[submodule "bats-core"]
2+
path = tests/acceptance/lib/bats-core
3+
url = https://github.com/bats-core/bats-core
4+
[submodule "bats-assert"]
5+
path = tests/acceptance/lib/bats-assert
6+
url = https://github.com/bats-core/bats-assert
7+
[submodule "bats-support"]
8+
path = tests/acceptance/lib/bats-support
9+
url = https://github.com/bats-core/bats-support

.golangci.yml

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
linters:
2+
disable-all: true
3+
enable:
4+
# default rules
5+
- errcheck
6+
- gosimple
7+
- govet
8+
- ineffassign
9+
- staticcheck
10+
- typecheck
11+
- unused
12+
# other rules
13+
- asasalint
14+
- asciicheck
15+
- bidichk
16+
- durationcheck
17+
- exportloopref
18+
- forbidigo
19+
- gocritic
20+
- gocheckcompilerdirectives
21+
- gosec
22+
- makezero
23+
- nilerr
24+
- nolintlint
25+
- reassign
26+
- sqlclosecheck
27+
- unconvert
28+
29+
linters-settings:
30+
nolintlint:
31+
require-explanation: true
32+
require-specific: true
33+
34+
gocritic:
35+
disabled-checks:
36+
- ifElseChain # style
37+
- singleCaseSwitch # style & it's actually not a bad idea to use single case switch in some cases
38+
- assignOp # style
39+
- commentFormatting # style
40+
41+
run:
42+
timeout: 5m
43+
skip-dirs:
44+
- "tests/acceptance"

.goreleaser.yml

+75
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
before:
2+
hooks:
3+
- go mod tidy
4+
builds:
5+
- env:
6+
- CGO_ENABLED=0
7+
- GO111MODULE=on
8+
goos:
9+
- linux
10+
- darwin
11+
goarch:
12+
- amd64
13+
- arm64
14+
15+
id: "powerpipe"
16+
binary: "powerpipe"
17+
archives:
18+
- files:
19+
- none*
20+
format: zip
21+
id: homebrew
22+
name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
23+
format_overrides:
24+
- goos: linux
25+
format: tar.gz
26+
27+
nfpms:
28+
- id: "powerpipe"
29+
builds: ["powerpipe"]
30+
formats:
31+
- deb
32+
- rpm
33+
vendor: "powerpipe.io"
34+
homepage: "https://powerpipe.io/"
35+
maintainer: "Turbot Support <[email protected]>"
36+
description: "Use SQL to instantly query your cloud services (AWS, Azure, GCP and more). Open source CLI. No DB required."
37+
file_name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
38+
rpm:
39+
summary: "Use SQL to instantly query your cloud services (AWS, Azure, GCP and more). Open source CLI. No DB required."
40+
41+
# it is necessary to specify the name_template of the snapshot, or else the snapshot gets created with
42+
# two dash(-) which results in a 500 error while downloading
43+
snapshot:
44+
name_template: "{{ .Version }}"
45+
46+
# snapcrafts:
47+
# - id: "powerpipe"
48+
# builds: ['powerpipe']
49+
# description: "Use SQL to instantly query your cloud services (AWS, Azure, GCP and more). Open source CLI. No DB required."
50+
# summary: "Snap package"
51+
# name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
52+
53+
checksum:
54+
name_template: "checksums.txt"
55+
release:
56+
# Visit your project's GitHub Releases page to publish this release.
57+
draft: true
58+
changelog:
59+
skip: true
60+
61+
brews:
62+
- ids:
63+
- homebrew
64+
name: powerpipe@{{ .Major }}.{{ .Minor }}.{{ .Patch }}
65+
tap:
66+
owner: turbot
67+
name: homebrew-tap
68+
branch: bump-brew
69+
folder: Formula
70+
url_template: "https://github.com/turbot/powerpipe/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
71+
homepage: "https://powerpipe.io/"
72+
description: "powerpipe exposes APIs and services as a high-performance relational database, giving you the ability to write SQL-based queries to explore, assess and report on dynamic data."
73+
skip_upload: auto
74+
install: |-
75+
bin.install "powerpipe"

CHANGELOG.md

Whitespace-only changes.

CODE_OF_CONDUCT.md

+74
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
## Code of Conduct
2+
3+
### Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as members,
6+
contributors and maintainers pledge to making participation in our project and
7+
our community a harassment-free experience for everyone, regardless of age, body
8+
size, disability, ethnicity, gender identity and expression, level of experience,
9+
nationality, personal appearance, race, religion, or sexual identity and
10+
orientation.
11+
12+
### Our Standards
13+
14+
Examples of behavior that contributes to creating a positive environment
15+
include:
16+
17+
- Using welcoming and inclusive language
18+
- Being respectful of differing viewpoints and experiences
19+
- Gracefully accepting constructive criticism
20+
- Focusing on what is best for the community
21+
- Showing empathy towards other community members
22+
23+
Examples of unacceptable behavior by participants include:
24+
25+
- The use of sexualized language or imagery and unwelcome sexual attention or
26+
advances
27+
- Trolling, insulting/derogatory comments, and personal or political attacks
28+
- Public or private harassment
29+
- Publishing others' private information, such as a physical or electronic
30+
address, without explicit permission
31+
- Other conduct which could reasonably be considered inappropriate in a
32+
professional setting
33+
34+
### Our Responsibilities
35+
36+
Project maintainers are responsible for clarifying the standards of acceptable
37+
behavior and are expected to take appropriate and fair corrective action in
38+
response to any instances of unacceptable behavior.
39+
40+
Project maintainers have the right and responsibility to remove, edit, or
41+
reject comments, commits, code, wiki edits, issues, and other contributions
42+
that are not aligned to this Code of Conduct, or to ban temporarily or
43+
permanently any contributor for other behaviors that they deem inappropriate,
44+
threatening, offensive, or harmful.
45+
46+
### Scope
47+
48+
This Code of Conduct applies both within project spaces and in public spaces
49+
when an individual is representing the project or its community. Examples of
50+
representing a project or community include using an official project e-mail
51+
address, posting via an official social media account, or acting as an appointed
52+
representative at an online or offline event. Representation of a project may be
53+
further defined and clarified by project maintainers.
54+
55+
### Enforcement
56+
57+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
58+
reported by contacting the project team at [[email protected]](mailto:[email protected]). All
59+
complaints will be reviewed and investigated and will result in a response that
60+
is deemed necessary and appropriate to the circumstances. The project team is
61+
obligated to maintain confidentiality with regard to the reporter of an incident.
62+
Further details of specific enforcement policies may be posted separately.
63+
64+
Project maintainers who do not follow or enforce the Code of Conduct in good
65+
faith may face temporary or permanent repercussions as determined by other
66+
members of the project's leadership.
67+
68+
### Attribution
69+
70+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71+
available at [http://contributor-covenant.org/version/1/4][version]
72+
73+
[homepage]: http://contributor-covenant.org
74+
[version]: http://contributor-covenant.org/version/1/4/

CONTRIBUTING.md

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Contributing to Steampipe
2+
3+
Because Open Source plays a major part in how we build our products,
4+
we see it as a matter of course to give the same effort back to our
5+
community by creating extensible and easy-to-use software.
6+
7+
We welcome contributions from the community and have created some
8+
resources to help you get started extending Powerpipe:
9+
10+
## Steampipe Architecture
11+
12+
https://powerpipe.io/docs/develop/architecture
13+
14+
## Naming Standards
15+
16+
https://powerpipe.io/docs/develop/standards
17+
18+
## Coding Standards
19+
20+
https://steampipe.io/docs/develop/coding-standards

0 commit comments

Comments
 (0)