コード例 #1
0
ファイル: UtilBuilder.cs プロジェクト: eberzosa/pundit
        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());
            });
        }
コード例 #2
0
ファイル: ConvertBuilder.cs プロジェクト: eberzosa/pundit
        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());
            });
        }
コード例 #3
0
ファイル: ConvertBuilder.cs プロジェクト: eberzosa/pundit
        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());
            });
        }