commands.go 559 Bytes
Newer Older
songlinfeng's avatar
songlinfeng committed
1
2
3
4
5
6
7
/**
# Copyright (c) 2024, HCUOpt CORPORATION.  All rights reserved.
**/

package commands

import (
8
9
10
	"dcu-container-toolkit/cmd/dcu-cdi-hook/chmod"
	symlinks "dcu-container-toolkit/cmd/dcu-cdi-hook/create-symlinks"
	"dcu-container-toolkit/internal/logger"
songlinfeng's avatar
songlinfeng committed
11
12
13
14
15

	"github.com/urfave/cli/v2"
)

// New creates the commands associated with supported CDI hooks.
16
// These are shared by the dcu-cdi-hook and dcu-ctk hook commands.
songlinfeng's avatar
songlinfeng committed
17
18
19
20
21
22
func New(logger logger.Interface) []*cli.Command {
	return []*cli.Command{
		symlinks.NewCommand(logger),
		chmod.NewCommand(logger),
	}
}