mirror of
https://gitea.com/gitea/tea.git
synced 2026-10-26 11:01:25 +01:00
feat(secret,variable): read values like gh and report stored names
secret set and variable set read the value from -b/--body, -F/--body-file or standard input when it is not a terminal (one trailing line break removed), and otherwise prompt for it; --env-file sets every NAME=value of a dotenv file. --value and --value-file keep working. The scope flags are -o/--org and --account on each command, and secret list no longer offers --account, which Gitea cannot list. Commands report what they did, naming the scope and the name Gitea stores: "Set Actions secret LOWER_NAME for alice/x (names are upper-cased)"; --json returns the stored name and omits an unknown creation time. Deleting asks "Delete secret X from alice/x?". Lists show NAME, CREATED and DESCRIPTION for secrets and NAME, VALUE and DESCRIPTION for variables; variable view shows a record and the new variable get prints the raw value. A missing secret or variable is reported by name and scope. The global --user selects the account tea acts as, unlike gh's --user, so secret and variable add a note on a terminal pointing to --account when it is given, as run list does for --actor. Help explains the scopes. Signed-off-by: bircni <bircni@icloud.com>
This commit is contained in:
5 files changed
+641
-185
No files matched your search
@@ -544,18 +544,11 @@ const (
|
||||
search issue
|
||||
search pr
|
||||
search repo
|
||||
secret delete
|
||||
secret list
|
||||
secret set
|
||||
status
|
||||
time create
|
||||
time delete
|
||||
time list
|
||||
time reset
|
||||
variable delete
|
||||
variable list
|
||||
variable set
|
||||
variable view
|
||||
wiki create
|
||||
wiki delete
|
||||
wiki edit
|
||||
@@ -581,9 +574,7 @@ const (
|
||||
release asset
|
||||
repo
|
||||
search
|
||||
secret
|
||||
time
|
||||
variable
|
||||
wiki
|
||||
`
|
||||
)
|
||||
Reference in new issue
Block a user