Skip to content

Commit 6b09b3d

Browse files
authored
Merge pull request #1 from essentialkaos/develop
Version 0.0.1
2 parents 5270a98 + a2e8e86 commit 6b09b3d

29 files changed

+1649
-2
lines changed

.codeclimate.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
version: "2"
2+
3+
checks:
4+
argument-count:
5+
enabled: true
6+
config:
7+
threshold: 6
8+
complex-logic:
9+
enabled: true
10+
config:
11+
threshold: 6
12+
file-lines:
13+
enabled: true
14+
config:
15+
threshold: 1000
16+
method-complexity:
17+
enabled: true
18+
config:
19+
threshold: 8
20+
method-count:
21+
enabled: true
22+
config:
23+
threshold: 20
24+
method-lines:
25+
enabled: true
26+
config:
27+
threshold: 100
28+
nested-control-flow:
29+
enabled: true
30+
config:
31+
threshold: 6
32+
return-statements:
33+
enabled: true
34+
config:
35+
threshold: 6
36+
similar-code:
37+
enabled: false
38+
identical-code:
39+
enabled: false

.docker/alpine.docker

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
## REGISTRY CONFIGURATION ######################################################
2+
3+
ARG REGISTRY="ghcr.io"
4+
5+
## BUILDER #####################################################################
6+
7+
FROM ${REGISTRY}/essentialkaos/golang:alpine3.21 AS builder
8+
9+
WORKDIR /go/src/github.com/essentialkaos/rds-cli-completion-generator
10+
11+
COPY . .
12+
13+
RUN make deps && make all
14+
15+
## FINAL IMAGE #################################################################
16+
17+
FROM ${REGISTRY}/essentialkaos/alpine:3.21
18+
19+
LABEL org.opencontainers.image.title="rds-cli-completion-generator" \
20+
org.opencontainers.image.description="Tool to generate completion for RDS CLI" \
21+
org.opencontainers.image.vendor="ESSENTIAL KAOS" \
22+
org.opencontainers.image.authors="Anton Novojilov" \
23+
org.opencontainers.image.licenses="Apache-2.0" \
24+
org.opencontainers.image.url="https://kaos.sh/rds-cli-completion-generator" \
25+
org.opencontainers.image.source="https://github.com/essentialkaos/rds-cli-completion-generator"
26+
27+
COPY --from=builder /go/src/github.com/essentialkaos/rds-cli-completion-generator/rds-cli-completion-generator \
28+
/usr/bin/
29+
30+
# hadolint ignore=DL3018
31+
RUN apk add --no-cache ca-certificates
32+
33+
ENTRYPOINT ["rds-cli-completion-generator"]
34+
35+
################################################################################

.github/CODE_OF_CONDUCT.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Contributor Code of Conduct
2+
3+
As contributors and maintainers of this project, and in the interest of
4+
fostering an open and welcoming community, we pledge to respect all people who
5+
contribute through reporting issues, posting feature requests, updating
6+
documentation, submitting pull requests or patches, and other activities.
7+
8+
We are committed to making participation in this project a harassment-free
9+
experience for everyone, regardless of level of experience, gender, gender
10+
identity and expression, sexual orientation, disability, personal appearance,
11+
body size, race, ethnicity, age, religion, or nationality.
12+
13+
Examples of unacceptable behavior by participants include:
14+
15+
* The use of sexualized language or imagery
16+
* Personal attacks
17+
* Trolling or insulting/derogatory comments
18+
* Public or private harassment
19+
* Publishing other's private information, such as physical or electronic
20+
addresses, without explicit permission
21+
* Other unethical or unprofessional conduct
22+
23+
Project maintainers have the right and responsibility to remove, edit, or
24+
reject comments, commits, code, wiki edits, issues, and other contributions
25+
that are not aligned to this Code of Conduct, or to ban temporarily or
26+
permanently any contributor for other behaviors that they deem inappropriate,
27+
threatening, offensive, or harmful.
28+
29+
By adopting this Code of Conduct, project maintainers commit themselves to
30+
fairly and consistently applying these principles to every aspect of managing
31+
this project. Project maintainers who do not follow or enforce the Code of
32+
Conduct may be permanently removed from the project team.
33+
34+
This Code of Conduct applies both within project spaces and in public spaces
35+
when an individual is representing the project or its community.
36+
37+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
38+
reported by contacting a project maintainer at `conduct@essentialkaos.com`. All
39+
complaints will be reviewed and investigated and will result in a response that
40+
is deemed necessary and appropriate to the circumstances. Maintainers are
41+
obligated to maintain confidentiality with regard to the reporter of an
42+
incident.

.github/CONTRIBUTING.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Contributing Guidelines
2+
3+
**IMPORTANT! Contribute your code only if you have an excellent understanding of project idea and all existing code base. Otherwise, a nicely formatted issue will be more helpful to us.**
4+
5+
### Issues
6+
7+
1. Provide product version where the problem was found;
8+
2. Provide info about your environment;
9+
3. Provide detailed info about your problem;
10+
4. Provide steps to reproduce the problem;
11+
5. Provide actual and expected results.
12+
13+
### Code
14+
15+
1. Check your code **before** creating pull request;
16+
2. If tests are present in a project, add tests for your code;
17+
3. Add inline documentation for your code;
18+
4. Apply code style used throughout the project;
19+
5. Create your pull request to `develop` branch (_pull requests to other branches are not allowed_).

.github/ISSUE_TEMPLATE/bug.yml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
name: ❗ Bug Report
2+
description: File a bug report
3+
title: "[Bug]: "
4+
labels: ["issue • bug"]
5+
assignees:
6+
- andyone
7+
8+
body:
9+
- type: markdown
10+
attributes:
11+
value: |
12+
> [!IMPORTANT]
13+
> Before you open an issue, search GitHub Issues for a similar bug reports. If so, please add a 👍 reaction to the existing issue.
14+
15+
- type: textarea
16+
attributes:
17+
label: Verbose application info
18+
description: Output of `rds-cli-completion-generator -vv` command
19+
render: shell
20+
validations:
21+
required: true
22+
23+
- type: dropdown
24+
id: version
25+
attributes:
26+
label: Install tools
27+
description: How did you install this application
28+
options:
29+
- From Sources
30+
- RPM Package
31+
- Prebuilt Binary
32+
default: 0
33+
validations:
34+
required: true
35+
36+
- type: textarea
37+
attributes:
38+
label: Steps to reproduce
39+
description: Short guide on how to reproduce this problem on our site
40+
placeholder: |
41+
1. [First Step]
42+
2. [Second Step]
43+
3. [and so on...]
44+
validations:
45+
required: true
46+
47+
- type: textarea
48+
attributes:
49+
label: Expected behavior
50+
description: What you expected to happen
51+
validations:
52+
required: true
53+
54+
- type: textarea
55+
attributes:
56+
label: Actual behavior
57+
description: What actually happened
58+
validations:
59+
required: true
60+
61+
- type: textarea
62+
attributes:
63+
label: Additional info
64+
description: Include gist of relevant config, logs, etc.

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
blank_issues_enabled: false
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: ❓ Question
2+
description: Question about application, configuration or code
3+
title: "[Question]: "
4+
labels: ["issue • question"]
5+
assignees:
6+
- andyone
7+
8+
body:
9+
- type: markdown
10+
attributes:
11+
value: |
12+
> [!IMPORTANT]
13+
> Before you open an issue, search GitHub Issues for a similar question. If so, please add a 👍 reaction to the existing issue.
14+
15+
- type: textarea
16+
attributes:
17+
label: Question
18+
description: Detailed question
19+
validations:
20+
required: true
21+
22+
- type: textarea
23+
attributes:
24+
label: Related version application info
25+
description: Output of `rds-cli-completion-generator -vv` command
26+
render: shell
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: ➕ Suggestion
2+
description: Suggest new feature or improvement
3+
title: "[Suggestion]: "
4+
labels: ["issue • suggestion"]
5+
assignees:
6+
- andyone
7+
8+
body:
9+
- type: markdown
10+
attributes:
11+
value: |
12+
> [!IMPORTANT]
13+
> Before you open an issue, search GitHub Issues for a similar feature requests. If so, please add a 👍 reaction to the existing issue.
14+
>
15+
> Opening a feature request kicks off a discussion. Requests may be closed if we're not actively planning to work on them.
16+
17+
- type: textarea
18+
attributes:
19+
label: Proposal
20+
description: Description of the feature
21+
validations:
22+
required: true
23+
24+
- type: textarea
25+
attributes:
26+
label: Current behavior
27+
description: What currently happens
28+
validations:
29+
required: true
30+
31+
- type: textarea
32+
attributes:
33+
label: Desired behavior
34+
description: What you would like to happen
35+
validations:
36+
required: true
37+
38+
- type: textarea
39+
attributes:
40+
label: Use case
41+
description: Why is this important (helps with prioritizing requests)
42+
validations:
43+
required: true

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
### What did you implement:
2+
3+
Closes #XXXXX
4+
5+
### How did you implement it:
6+
7+
...
8+
9+
### How can we verify it:
10+
11+
...
12+
13+
### TODO's:
14+
15+
- [ ] Write tests
16+
- [ ] Write documentation
17+
- [ ] Check that there aren't other open pull requests for the same issue/feature
18+
- [ ] Format your source code by `make fmt`
19+
- [ ] Provide verification config / commands
20+
- [ ] Enable "Allow edits from maintainers" for this PR
21+
- [ ] Update the messages below
22+
23+
**Is this ready for review?:** No
24+
**Is it a breaking change?:** No

.github/dependabot.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
version: 2
2+
3+
updates:
4+
- package-ecosystem: "gomod"
5+
directory: "/"
6+
target-branch: "develop"
7+
schedule:
8+
interval: "daily"
9+
timezone: "Etc/UTC"
10+
time: "07:00"
11+
labels:
12+
- "PR • MAINTENANCE"
13+
assignees:
14+
- "andyone"
15+
reviewers:
16+
- "andyone"
17+
groups:
18+
all:
19+
applies-to: version-updates
20+
update-types:
21+
- "minor"
22+
- "patch"
23+
24+
- package-ecosystem: "github-actions"
25+
directory: "/"
26+
target-branch: "develop"
27+
schedule:
28+
interval: "daily"
29+
timezone: "Etc/UTC"
30+
time: "08:00"
31+
labels:
32+
- "PR • MAINTENANCE"
33+
assignees:
34+
- "andyone"
35+
reviewers:
36+
- "andyone"

0 commit comments

Comments
 (0)