package main

import (
	"fmt"
	"os"
)

func showImageSubcommand(args []string) {
	if err := showImage(args[0]); err != nil {
		fmt.Fprintf(os.Stderr, "Error showing image\t%s\n", err)
		os.Exit(1)
	}
	os.Exit(0)
}

func showImage(image string) error {
	fs, err := getTypedImage(image)
	if err != nil {
		return err
	}
	return fs.Listf(os.Stdout, listSelector, listFilter)
}

package main

import (
	"fmt"
	"os"

	"github.com/Symantec/Dominator/lib/srpc"
)

func showImageSubcommand(args []string) {
	imageSClient, _ := getClients()
	if err := showImage(imageSClient, args[0]); err != nil {
		fmt.Fprintf(os.Stderr, "Error showing image\t%s\n", err)
		os.Exit(1)
	}
	os.Exit(0)
}

func showImage(client *srpc.Client, image string) error {
	fs, err := getFsOfImage(client, image)
	if err != nil {
		return err
	}
	return fs.Listf(os.Stdout, listSelector, listFilter)
}

--- 
+++ 
@@ -3,21 +3,18 @@
 import (
 	"fmt"
 	"os"
-
-	"github.com/Symantec/Dominator/lib/srpc"
 )
 
 func showImageSubcommand(args []string) {
-	imageSClient, _ := getClients()
-	if err := showImage(imageSClient, args[0]); err != nil {
+	if err := showImage(args[0]); err != nil {
 		fmt.Fprintf(os.Stderr, "Error showing image\t%s\n", err)
 		os.Exit(1)
 	}
 	os.Exit(0)
 }
 
-func showImage(client *srpc.Client, image string) error {
-	fs, err := getFsOfImage(client, image)
+func showImage(image string) error {
+	fs, err := getTypedImage(image)
 	if err != nil {
 		return err
 	}
Support typed image in imagetool show subcommand.
