forked from forgejo/forgejo
[CLI] implement forgejo-cli actions register
(cherry picked from commit 2f95143000
)
This commit is contained in:
parent
e085d6d273
commit
42f2f8731e
9 changed files with 517 additions and 7 deletions
|
@ -17,7 +17,7 @@ import (
|
|||
"github.com/urfave/cli"
|
||||
)
|
||||
|
||||
func cmdForgejoCaptureOutput(t *testing.T, args []string) (string, error) {
|
||||
func cmdForgejoCaptureOutput(t *testing.T, args []string, stdin ...string) (string, error) {
|
||||
r, w, err := os.Pipe()
|
||||
assert.NoError(t, err)
|
||||
set := flag.NewFlagSet("forgejo-cli", 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue