コード例 #1
0
 public static Command CreateCommand() => new Command(
     name: "build-manifest",
     description: "",
     symbols: new Option[]
 {
     RegistryOption.Create(),
     UsernameOption.Create(),
     PasswordOption.Create(),
 },
     handler: CommandHandler.Create <IConsole, string?, string?, string?>(TestCredentialsAsync),
     isHidden: true
     );
コード例 #2
0
 public static Command CreateCommand() => new Command(
     name: "test-credentials",
     description: "Test credentials used to connect to container registry",
     symbols: new Option[]
 {
     RegistryOption.Create(),
     UsernameOption.Create(),
     PasswordOption.Create(),
 },
     handler: CommandHandler.Create <IConsole, string?, string?, string?>(TestCredentialsAsync),
     isHidden: true
     );
コード例 #3
0
 public static Command CreateCommand() => new Command(
     name: "push",
     description: "Invoke dotnet publish and push resulting artifact to registry",
     symbols: new Option[]
 {
     RegistryOption.Create(),
     UsernameOption.Create(),
     PasswordOption.Create(),
     RepositoryOption.Create()
 },
     handler: CommandHandler.Create <IConsole, string?, string?, string?, string?>(Push),
     isHidden: false
     );
コード例 #4
0
 public static Command CreateCommand() => new Command(
     name: "import-base",
     description: "",
     symbols: new Option[]
 {
     RegistryOption.Create(),
     UsernameOption.Create(),
     PasswordOption.Create(),
     RepositoryOption.Create()
 },
     handler: CommandHandler.Create <IConsole, string?, string?, string?, string?>(ImportBaseAsync),
     isHidden: true
     );