Skip to content
This repository was archived by the owner on Oct 3, 2023. It is now read-only.

Commit 9a3fbea

Browse files
committed
Fixed version subcommand
1 parent f4ed003 commit 9a3fbea

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

cmd/docker-setup/version.go

+7
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,17 @@ var versionCmd = &cobra.Command{
1818
Long: header + "\nShow version of installed tool",
1919
Args: cobra.ExactArgs(1),
2020
RunE: func(cmd *cobra.Command, args []string) error {
21+
assertMetadataFileExists()
22+
assertMetadataIsLoaded()
23+
2124
tool, err := tools.GetByName(args[0])
2225
if err != nil {
2326
return fmt.Errorf("failed to get tool: %s", err)
2427
}
28+
tool.ReplaceVariables(prefix+"/"+target, arch, altArch)
29+
tool.GetMarkerFileStatus(prefix + "/" + cacheDirectory)
30+
tool.GetBinaryStatus()
31+
tool.GetVersionStatus()
2532

2633
if !tool.Status.MarkerFilePresent && !tool.Status.BinaryPresent {
2734
pterm.Warning.Printfln("Tool %s is not installed", tool.Name)

0 commit comments

Comments
 (0)