forked from forgejo/forgejo
[CLI] implement forgejo-cli (squash) support initDB
(cherry picked from commit5c31ae602a
) (cherry picked from commit1da62f2930
)
This commit is contained in:
parent
e868b286c9
commit
fe410f108a
2 changed files with 27 additions and 6 deletions
|
@ -24,7 +24,7 @@ func cmdForgejoCaptureOutput(t *testing.T, args []string, stdin ...string) (stri
|
|||
assert.NoError(t, set.Parse(args))
|
||||
cliContext := cli.NewContext(&cli.App{Writer: w, ErrWriter: w}, set, nil)
|
||||
ctx := context.Background()
|
||||
ctx = forgejo.ContextSetNoInstallSignals(ctx, true)
|
||||
ctx = forgejo.ContextSetNoInit(ctx, true)
|
||||
ctx = forgejo.ContextSetNoExit(ctx, true)
|
||||
ctx = forgejo.ContextSetStdout(ctx, w)
|
||||
ctx = forgejo.ContextSetStderr(ctx, w)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue