Switch grafana server command to use urfave/cli/v2 (#60684)

* switch grafana server to use urfave/cli/v2

* autocomplete support

* lint fix
This commit is contained in:
Dan Cech
2022-12-24 22:33:18 -05:00
committed by GitHub
parent 9bd6e471e4
commit 9c4051bfa1
8 changed files with 168 additions and 118 deletions

View File

@@ -61,7 +61,6 @@ func TestServer_Run_Error(t *testing.T) {
s := testServer(t, newTestService(nil, false), newTestService(testErr, false))
err := s.Run()
require.ErrorIs(t, err, testErr)
require.NotZero(t, s.ExitCode(err))
}
func TestServer_Shutdown(t *testing.T) {
@@ -87,7 +86,6 @@ func TestServer_Shutdown(t *testing.T) {
}()
err := s.Run()
require.NoError(t, err)
require.Zero(t, s.ExitCode(err))
err = <-ch
require.NoError(t, err)