diff options
| author | 2025-08-13 12:24:40 +0200 | |
|---|---|---|
| committer | 2025-08-13 12:24:40 +0200 | |
| commit | 7f8cb204cd5a58eb143ab20a21bfa32bd8c3c26b (patch) | |
| tree | e8a10032b73bd1c60df5c8e8fdf7817410d67e1a /cmd/gotosocial/action/testrig/no_testrig.go | |
| parent | [chore] bump to code.superseriousbusiness.org/oauth2/v4@ssb-v4.5.3-2 (#4367) (diff) | |
| download | gotosocial-7f8cb204cd5a58eb143ab20a21bfa32bd8c3c26b.tar.xz | |
[feature] 2fa management via CLI (#4368)
Adds 2FA management to the admin CLI. Also does some CLI refactoring so the functions we pass around are exported functions instead of changeable global variables.
closes https://codeberg.org/superseriousbusiness/gotosocial/issues/4320
Reviewed-on: https://codeberg.org/superseriousbusiness/gotosocial/pulls/4368
Co-authored-by: kim <grufwub@gmail.com>
Co-committed-by: kim <grufwub@gmail.com>
Diffstat (limited to 'cmd/gotosocial/action/testrig/no_testrig.go')
| -rw-r--r-- | cmd/gotosocial/action/testrig/no_testrig.go | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/cmd/gotosocial/action/testrig/no_testrig.go b/cmd/gotosocial/action/testrig/no_testrig.go index 07e9960dc..d5459b200 100644 --- a/cmd/gotosocial/action/testrig/no_testrig.go +++ b/cmd/gotosocial/action/testrig/no_testrig.go @@ -19,8 +19,15 @@ package testrig -import "code.superseriousbusiness.org/gotosocial/cmd/gotosocial/action" +import ( + "context" + + "code.superseriousbusiness.org/gotosocial/cmd/gotosocial/action" +) + +// check function conformance. +var _ action.GTSAction = Start // Start creates and starts a gotosocial testrig server. // This is only enabled in debug builds, else is nil. -var Start action.GTSAction +func Start(context.Context) error { return nil } |
