コード例 #1
0
        public ICommand MakeCommand(string[] arguments)
        {
            string[] parameters         = _parameterParser.GetParameters(arguments, 2, 2);
            var      renameFilesCommand = Config.Get <RenameFilesCommand>();

            if (parameters == null)
            {
                return(renameFilesCommand);
            }
            renameFilesCommand.Directory = arguments[1];
            renameFilesCommand.ByLabels  = parameters;
            return(renameFilesCommand);
        }
コード例 #2
0
        public ICommand MakeCommand(string[] arguments)
        {
            string[] parameters            = _parameterParser.GetParameters(arguments, 2, 2);
            var      organizerImageCommand = Config.Get <OrganizerImagesCommand>();

            if (parameters == null)
            {
                return(organizerImageCommand);
            }

            organizerImageCommand.Directory = arguments[1];
            organizerImageCommand.ByLabels  = parameters;
            return(organizerImageCommand);
        }