Пример #1
0
        public void CreatePackage(CommandOptions options)
        {
            this.commandOptions = options;
            this.configuration.PackageRepositoryPath = options.PackageRepositoryPath;

            this.RunCreatePackage();
        }
Пример #2
0
        public CommandOptions Process(string[] args)
        {
            var options = new CommandOptions();
            var parser = new CommandLineParser();

            parser.ParseArguments(args, options);

            return options;
        }
Пример #3
0
        private void DisplayAvailablePackages(CommandOptions options)
        {
            var packages = this.PackageDeployerTasks.RetrieveAllPackages(options.PackageRepositoryPath);

            Console.WriteLine(string.Format("Templify packages available in repository '{0}':", options.PackageRepositoryPath));

            foreach (var package in packages)
            {
                Console.WriteLine("   {0}", package.Manifest.Name);
            }
        }
Пример #4
0
        private void DisplayTokens(CommandOptions options)
        {
            var tokens = this.PackageDeployerTasks.RetrieveTokensForPackage(options.PackageName, options.PackageRepositoryPath);

            Console.WriteLine(string.Format("Tokens available in Package {0}:", options.PackageName));

            foreach (var token in tokens)
            {
                Console.WriteLine(token);
            }
        }