Unexport system commands

This patch deprecates exported system commands and moves the
implementation details to an unexported function.

Commands that are affected include:

- system.NewVersionCommand
- system.NewInfoCommand
- system.NewSystemCommand
- system.NewEventsCommand
- system.NewInspectCommand

Signed-off-by: Alano Terblanche <18033717+Benehiko@users.noreply.github.com>
This commit is contained in:
Alano Terblanche
2025-08-19 15:12:45 +02:00
parent 2e3d021912
commit cfb8cb91f2
10 changed files with 60 additions and 20 deletions

View File

@ -20,7 +20,7 @@ func TestVersionWithoutServer(t *testing.T) {
return types.Version{}, errors.New("no server")
},
})
cmd := NewVersionCommand(cli)
cmd := newVersionCommand(cli)
cmd.SetArgs([]string{})
cmd.SetOut(cli.Err())
cmd.SetErr(io.Discard)