コード例 #1
0
        public void Execute(ICollection <string> args)
        {
            cdPath = storageHelper.GetCdPath();
            var dir = CreateRepositoryCatalog();

            if (dir == null)
            {
                return;
            }

            var projName = repositoryHelper.ProcessProjectName(dir.FullName, args);

            storageHelper.AddProject(dir.FullName.Replace(subPath, ""), projName);
            repositoryHelper.CreateRepoStorage(dir.FullName, projName);

            commitCommand.Execute(new List <string>()
            {
                "init"
            });
        }