Exemple #1
0
            public void Run()
            {
                if (_companyNamePlaceHolder != null)
                {
                    if (_companyName != null)
                    {
                        RenameHelper.RenameAll(_entries, _companyNamePlaceHolder, _companyName);
                        RenameHelper.RenameAll(_entries, _companyNamePlaceHolder.ToCamelCase(), _companyName.ToCamelCase());
                        RenameHelper.RenameAll(_entries, _companyNamePlaceHolder.ToKebabCase(), _companyName.ToKebabCase());
                        RenameHelper.RenameAll(_entries, _companyNamePlaceHolder.ToLowerInvariant(), _companyName.ToLowerInvariant());
                    }
                    else
                    {
                        RenameHelper.RenameAll(_entries, _companyNamePlaceHolder + "." + _projectNamePlaceHolder, _projectNamePlaceHolder);
                        RenameHelper.RenameAll(_entries, _companyNamePlaceHolder.ToCamelCase() + "." + _projectNamePlaceHolder.ToCamelCase(), _projectNamePlaceHolder.ToCamelCase());
                        RenameHelper.RenameAll(_entries, _companyNamePlaceHolder.ToLowerInvariant() + "." + _projectNamePlaceHolder.ToLowerInvariant(), _projectNamePlaceHolder.ToLowerInvariant());
                        RenameHelper.RenameAll(_entries, _companyNamePlaceHolder.ToKebabCase() + "/" + _projectNamePlaceHolder.ToKebabCase(), _projectNamePlaceHolder.ToKebabCase());
                    }
                }

                RenameHelper.RenameAll(_entries, _projectNamePlaceHolder, _projectName);
                RenameHelper.RenameAll(_entries, _projectNamePlaceHolder.ToCamelCase(), _projectName.ToCamelCase());
                RenameHelper.RenameAll(_entries, _projectNamePlaceHolder.ToKebabCase(), _projectName.ToKebabCase());
                RenameHelper.RenameAll(_entries, _projectNamePlaceHolder.ToLowerInvariant(), _projectName.ToLowerInvariant());
                RenameHelper.RenameAll(_entries, _projectNamePlaceHolder.ToSnakeCase().ToUpper(), _projectName.ToSnakeCase().ToUpper());
            }
            public void Run()
            {
                if (_companyNamePlaceHolder != null && _companyName != null)
                {
                    RenameHelper.RenameAll(_entries, _companyNamePlaceHolder, _companyName);
                }
                else if (_companyNamePlaceHolder != null)
                {
                    RenameHelper.RenameAll(_entries, _companyNamePlaceHolder + "." + _projectNamePlaceHolder, _projectNamePlaceHolder);
                }

                RenameHelper.RenameAll(_entries, _projectNamePlaceHolder, _projectName);
            }
Exemple #3
0
            public void Run()
            {
                if (_companyNamePlaceHolder != null)
                {
                    if (_companyName != null)
                    {
                        RenameHelper.RenameAll(_entries, _companyNamePlaceHolder, _companyName);
                    }
                    else
                    {
                        RenameHelper.RenameAll(_entries, _companyNamePlaceHolder + "." + _projectNamePlaceHolder, _projectNamePlaceHolder);
                    }
                }

                RenameHelper.RenameAll(_entries, _projectNamePlaceHolder, _projectName);
                RenameHelper.RenameAll(_entries, _projectNamePlaceHolder.ToCamelCase(), _projectName.ToCamelCase());
                RenameHelper.RenameAll(_entries, _projectNamePlaceHolder.ToKebabCase(), _projectName.ToKebabCase());
            }