//go:build slim

package cli

import (
	"context"
	"io"

	"golang.org/x/xerrors"

	"github.com/coder/coder/v2/cli/clibase"
	agplcoderd "github.com/coder/coder/v2/coderd"
)

func (r *RootCmd) server() *clibase.Cmd {
	cmd := r.Server(func(ctx context.Context, options *agplcoderd.Options) (*agplcoderd.API, io.Closer, error) {
		return nil, nil, xerrors.Errorf("slim build does not support `coder server`")
	})
	return cmd
}
