master
 1package get
 2
 3import (
 4	"github.com/kahnwong/swissknife/internal/get"
 5	"github.com/spf13/cobra"
 6)
 7
 8var getSmartCmd = &cobra.Command{
 9	Use:   "smart [disk]",
10	Short: "Get disk SMART info.",
11	Long:  "Get disk SMART info. Equivalent of `sudo smartctl -a /dev/nvme0n1p`",
12	RunE: func(cmd *cobra.Command, args []string) error {
13		return get.Smart(args)
14	},
15}
16
17func init() {
18	Cmd.AddCommand(getSmartCmd)
19}