Example #1
0
        private void BuildNuGetEncryptCommand(ISubCommand parent)
        {
            parent.NewSubCommand("keyEncrypt", "Encryps a NuGet Repo Api Key")
            .Build((cmd, arg, opt) =>
            {
                var key = arg.SingleValue("key", "The key to encrypt");

                cmd.OnExecute(() => _controller.Encrypt(key.Value).ToInteger());
            });
        }
Example #2
0
        public void BuildPunditToNuGet(ISubCommand parent)
        {
            parent.NewSubCommand("PunditToNuGet", "Converts a Pundit Package to a NuGet Package")
            .Build((cmd, arg, opt) =>
            {
                var source = arg.SingleValue("sourceFile", "The NuGet Package file to convert");
                var output = opt.SingleValue("o", "output", "directory", "Specifies the output directory for the converted file(s)");

                cmd.OnExecute(() => _controller.PunditToNuGet(source.Value, output.Value).ToInteger());
            });
        }
Example #3
0
        public void BuildNuGetToPundit(ISubCommand parent)
        {
            parent.NewSubCommand("NuGetToPundit", "Converts a NuGet Package to a Pundit Package")
            .Build((cmd, arg, opt) =>
            {
                var source    = arg.SingleValue("sourceFile", "The NuGet Package file to convert");
                var output    = opt.SingleValue("o", "output", "directory", "Specifies the output directory for the converted file(s)");
                var framework = opt.SingleValue("f", "framework", "version", "The framework version to use. Default, convert all");

                cmd.OnExecute(() => _controller.NuGetToPundit(source.Value, output.Value, framework.Value).ToInteger());
            });
        }