forked from kevadesu/forgejo
[CLI] implement forgejo-cli actions register
(cherry picked from commit2f95143000
) (cherry picked from commit42f2f8731e
) [CLI] implement forgejo-cli actions register (squash) no private Do not go through the private API, directly modify the database (cherry picked from commit1ba7c0d39d
)
This commit is contained in:
parent
4c121ef022
commit
fd7f8bec98
8 changed files with 484 additions and 8 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