@@ -19,7 +19,7 @@ import (
1919 vfs "github.com/twpayne/go-vfs"
2020)
2121
22- var _importommand = & cobra.Command {
22+ var _importCommand = & cobra.Command {
2323 Use : "import" ,
2424 Args : cobra .MaximumNArgs (1 ),
2525 Short : "Import an archive" ,
@@ -33,9 +33,9 @@ type importCommandConfig struct {
3333}
3434
3535func init () {
36- rootCommand .AddCommand (_importommand )
36+ rootCommand .AddCommand (_importCommand )
3737
38- persistentFlags := _importommand .PersistentFlags ()
38+ persistentFlags := _importCommand .PersistentFlags ()
3939 persistentFlags .StringVarP (& config ._import .destination , "destination" , "d" , "" , "destination prefix" )
4040 persistentFlags .IntVar (& config ._import .stripComponents , "strip-components" , 0 , "strip components" )
4141 persistentFlags .BoolVarP (& config ._import .removeDestination , "remove-destination" , "r" , false , "remove destination before import" )
@@ -83,5 +83,5 @@ func (c *Config) runImportCommand(fs vfs.FS, cmd *cobra.Command, args []string)
8383 return err
8484 }
8585 }
86- return ts .Import (tar .NewReader (r ), c ._import .destination , c ._import .stripComponents , mutator )
86+ return ts .ImportTAR (tar .NewReader (r ), c ._import .destination , c ._import .stripComponents , mutator )
8787}
0 commit comments