flags.BoolVarP(¬CreateNewFile,"no-create","C",false,"Do not create the file if it does not exist.")
flags.StringVarP(&timeAsArgument,"timestamp","t","","Change the modification times to the specified time instead of the current time of day. The argument is of the form 'YYMMDD' (ex. 17.10.30) or 'YYYY-MM-DDTHH:MM:SS' (ex. 2006-01-02T15:04:05)")
}
varcommandDefintion=&cobra.Command{
Use:"touch remote:path",
Short:`Create new file or change file modification time.`,
Run:func(command*cobra.Command,args[]string){
cmd.CheckArgs(1,1,command,args)
fsrc,srcFileName:=cmd.NewFsDstFile(args)
cmd.Run(true,false,command,func()error{
returnTouch(fsrc,srcFileName)
})
},
}
//Touch create new file or change file modification time.