Skip to content
This repository was archived by the owner on May 29, 2022. It is now read-only.

Commit 852ffd3

Browse files
committed
Rename to gh-cli
- Rename all references to `gh-actions-secrets` to `gh-cli`. - Add `Secrets` as a subcommand. - `derive(Clap)` approach to CLI wrapper, easier to maintain. - Change the HTTP client to send `gh-cli-unofficial` as the "User-Agent" header. 🚀🚀🚀
1 parent c4f8fbb commit 852ffd3

File tree

6 files changed

+261
-129
lines changed

6 files changed

+261
-129
lines changed

.github/workflows/rust.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ jobs:
1616
- name: Upload build artifact
1717
uses: actions/upload-artifact@v1
1818
with:
19-
name: gh-actions-secrets_ubuntu
20-
path: target/release/gh-actions-secrets
19+
name: gh-cli_ubuntu
20+
path: target/release/gh-cli
2121

2222

2323
build-macos:
@@ -29,8 +29,8 @@ jobs:
2929
- name: Upload build artifact
3030
uses: actions/upload-artifact@v1
3131
with:
32-
name: gh-actions-secrets_macos
33-
path: target/release/gh-actions-secrets
32+
name: gh-cli_macos
33+
path: target/release/gh-cli
3434

3535
build-windows:
3636
runs-on: windows-latest
@@ -41,5 +41,5 @@ jobs:
4141
- name: Upload build artifact
4242
uses: actions/upload-artifact@v1
4343
with:
44-
name: gh-actions-secrets_windows.exe
45-
path: target\release\gh-actions-secrets.exe
44+
name: gh-cli_windows.exe
45+
path: target\release\gh-cli.exe

Cargo.lock

Lines changed: 106 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
[package]
2-
name = "gh-actions-secrets"
3-
version = "0.2.1"
2+
name = "gh-cli"
3+
version = "0.3.0"
44
authors = ["Aslam Ahammed <[email protected]>"]
55
edition = "2018"
66
license = "MIT"
77
readme = "README.md"
8-
repository = "https://github.com/aslamplr/gh-actions-secrets"
8+
repository = "https://github.com/aslamplr/gh-cli"
99

1010
[dependencies]
11-
clap = "2.33.0"
11+
clap = "3.0.0-beta.1"
1212
hyper = "0.13"
1313
hyper-tls = "0.4.1"
1414
tokio = { version = "0.2", features = ["full"] }

README.md

Lines changed: 40 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,42 @@
11
# gh-cli
22
named `gh-actions-secrets` earlier, renamed to `gh-cli`.
33

4-
[🗃 » Download the latest release «](https://github.com/aslamplr/gh-actions-secrets/releases)
4+
[🗃 » Download the latest release «](https://github.com/aslamplr/gh-cli/releases)
55

66

77
```
8-
GitHub Actions Secrets - CLI (Un-official) v0.2.1
8+
$ gh-cli help
9+
GitHub CLI v0.3.0
910
Aslam Ahammed A. <[email protected]>
10-
CLI tool to deal with GitHub Actions Secrets API.
11-
Minimalistic and Opinionated, un-official by default.
11+
Yet another unofficial GitHub CLI!
12+
Minimalistic, opinionated, and unofficial by default.
13+
Work is in progress to add more subcommands.
1214
Absolute No Warranty!
1315
1416
USAGE:
15-
gh-actions-secrets [OPTIONS] --action <ACTION> --auth_token <PERSONAL_ACCESS_TOKEN> --repo_name <REPO_NAME> --repo_owner <REPO_OWNER>
17+
gh-cli <SUBCOMMAND>
18+
19+
FLAGS:
20+
-h, --help Prints help information
21+
-V, --version Prints version information
22+
23+
SUBCOMMANDS:
24+
help Prints this message or the help of the given subcommand(s)
25+
secrets GitHub Actions Secrets CLI wrapper for GitHub Actions Secrets API
26+
```
27+
28+
## Sub Commands
29+
30+
### Secrets
31+
32+
```
33+
$ gh-cli secrets
34+
gh-cli-secrets v0.3.0
35+
Aslam Ahammed A. <[email protected]>
36+
GitHub Actions Secrets CLI wrapper for GitHub Actions Secrets API
37+
38+
USAGE:
39+
gh-cli secrets [OPTIONS] --auth_token <PERSONAL_ACCESS_TOKEN> --repo_owner <REPO_OWNER> --repo_name <REPO_NAME> --action <ACTION>
1640
1741
FLAGS:
1842
-h, --help Prints help information
@@ -24,24 +48,27 @@ OPTIONS:
2448
-t, --auth_token <PERSONAL_ACCESS_TOKEN> Generate token - https://github.com/settings/tokens
2549
-a, --action <ACTION> [possible values: list, get, add, update, delete]
2650
--secret_key <SECRET_KEY>
27-
--secret_value <SECRET_VALUE>
51+
--secret_value <SECRET_VALUE>
2852
```
2953

30-
Example - Add new secret to Github actions secrets
54+
#### Example
55+
56+
**Add new secret to Github actions secrets**
3157

3258
```
33-
gh-actions-secrets --auth_token=qwertyuipasdfghjklzxcvbnmlkgsdfg --repo_owner aslamplr --repo_name gh-actions-secrets --action add --secret_key SECRET_KEY --secret_value SECRET_VALUE_XYZ_BLAH_BLAH
59+
gh-cli secrets --auth_token=qwertyuipasdfghjklzxcvbnmlkgsdfg --repo_owner aslamplr --repo_name gh-actions-secrets --action add --secret_key SECRET_KEY --secret_value SECRET_VALUE_XYZ_BLAH_BLAH
3460
```
3561

36-
Example - List all secrets
62+
**List all secrets**
3763

3864
```
39-
gh-actions-secrets --auth_token=qwertyuipasdfghjklzxcvbnmlkgsdfg --repo_owner aslamplr --repo_name gh-actions-secrets --action list
65+
gh-cli secrets --auth_token=qwertyuipasdfghjklzxcvbnmlkgsdfg --repo_owner aslamplr --repo_name gh-actions-secrets --action list
4066
```
4167

42-
### Requirements for development
68+
## Development
69+
### Requirements
4370

44-
- Rust (rustc 1.42.0)
71+
- Rust (rustc 1.43.0)
4572

4673
### Run
4774

@@ -56,5 +83,5 @@ cargo build --release
5683
```
5784

5885
## Roadmap
59-
- Unofficial Github CLI
86+
- Blazing fast Unofficial Github CLI implemented in Rust
6087
- Rust client library for Github API

0 commit comments

Comments
 (0)