forked from forgejo/forgejo
[CLI] implement forgejo-cli actions register
(cherry picked from commit2f95143000
) (cherry picked from commitcf77f1e6d9
) (cherry picked from commit0983b62ca0
)
This commit is contained in:
parent
ef51e4b751
commit
d6efefbb63
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