private static bool RunCommands() { ICommand cmd = new HelpCommand(); if (!string.IsNullOrEmpty(ArgSettings.Help)) { cmd = new HelpCommand(); } else if (ArgSettings.List) { cmd = new ListCommand(); } else if (ArgSettings.Remove) { cmd = new RemoveCommand(); } else if (ArgumentsHelper.IsValidUri(ArgSettings.Source) && ArgumentsHelper.IsValidUri(ArgSettings.Destination) && ArgumentsHelper.IsValidAzureConnection(ArgSettings.SourceConnection)) { cmd = new CopyCommand(); } else if (ArgumentsHelper.IsValidUri(ArgSettings.Source) && ArgumentsHelper.IsValidFileSystemPath(ArgSettings.Destination)) { cmd = new DownloadCommand(); } else if (ArgumentsHelper.IsValidFileSystemPath(ArgSettings.Source) && ArgumentsHelper.IsValidUri(ArgSettings.Destination)) { cmd = new UploadCommand(); } return(cmd.Execute()); }