2 implementations of Output
dotnet-user-jwts (2)
src\aspnetcore\src\Tools\Shared\CommandLine\ConsoleReporter.cs (1)
57public virtual void Output(string message)
src\aspnetcore\src\Tools\Shared\CommandLine\NullReporter.cs (1)
20public void Output(string message)
41 references to Output
dotnet-user-jwts (41)
Commands\ClearCommand.cs (5)
58reporter.Output(Resources.FormatClearCommand_NoJwtsRemoved(project)); 64reporter.Output(Resources.FormatClearCommand_Permission(count, project)); 65reporter.Output("[Y]es / [N]o"); 68reporter.Output(Resources.ClearCommand_Canceled); 82reporter.Output(Resources.FormatClearCommand_Confirmed(count, project));
Commands\CreateCommand.cs (5)
274reporter.Output(jwt.Token); 277reporter.Output(JsonSerializer.Serialize(jwt, JwtSerializerContext.Default.Jwt)); 280reporter.Output(Resources.FormatCreateCommand_Confirmed(jwtToken.Id)); 281reporter.Output(optionsString); 282reporter.Output($"{Resources.JwtPrint_Token}: {jwt.Token}");
Commands\KeyCommand.cs (5)
69reporter.Output(Resources.KeyCommand_Permission); 73reporter.Output(Resources.KeyCommand_Canceled); 79reporter.Output(Resources.FormatKeyCommand_KeyCreated(Convert.ToBase64String(key))); 87reporter.Output(Resources.KeyCommand_KeyNotFound); 91reporter.Output(Resources.FormatKeyCommand_Confirmed(Convert.ToBase64String(signingKeyMaterial)));
Commands\ListCommand.cs (5)
62reporter.Output(JsonSerializer.Serialize(jwts, JwtSerializerContext.Default.IDictionaryStringJwt)); 66reporter.Output(JsonSerializer.Serialize(Array.Empty<Jwt>(), JwtSerializerContext.Default.JwtArray)); 72reporter.Output(Resources.FormatListCommand_Project(project)); 73reporter.Output(Resources.FormatListCommand_UserSecretsId(userSecretsId)); 102reporter.Output(Resources.ListCommand_NoJwts);
Commands\PrintCommand.cs (1)
55reporter.Output(Resources.FormatPrintCommand_NoJwtFound(id));
Commands\RemoveCommand.cs (1)
69reporter.Output(Resources.FormatRemoveCommand_Confirmed(id));
Helpers\ConsoleTable.cs (1)
131_reporter.Output(builder.ToString());
Helpers\DevJwtCliHelpers.cs (16)
235reporter.Output(fullToken is not null ? jwt.Token : string.Empty); 247reporter.Output(JsonSerializer.Serialize(jwt, JwtSerializerContext.Default.Jwt)); 252reporter.Output(Resources.FormatPrintCommand_Confirmed(jwt.Id)); 253reporter.Output($"{Resources.JwtPrint_Id}: {jwt.Id}"); 254reporter.Output($"{Resources.JwtPrint_Name}: {jwt.Name}"); 255reporter.Output($"{Resources.JwtPrint_Scheme}: {jwt.Scheme}"); 256reporter.Output($"{Resources.JwtPrint_Audiences}: {jwt.Audience}"); 257reporter.Output($"{Resources.JwtPrint_NotBefore}: {jwt.NotBefore:O}"); 258reporter.Output($"{Resources.JwtPrint_ExpiresOn}: {jwt.Expires:O}"); 259reporter.Output($"{Resources.JwtPrint_IssuedOn}: {jwt.Issued:O}"); 266reporter.Output($"{Resources.JwtPrint_Scopes}: {scopesValue}"); 274reporter.Output($"{Resources.JwtPrint_Roles}: [{rolesValue}]"); 282reporter.Output($"{Resources.JwtPrint_CustomClaims}: [{customClaimsValue}]"); 287reporter.Output($"{Resources.JwtPrint_TokenHeader}: {fullToken.Header.SerializeToJson()}"); 288reporter.Output($"{Resources.JwtPrint_TokenPayload}: {fullToken.Payload.SerializeToJson()}"); 292reporter.Output($"{tokenValueFieldName}: {jwt.Token}");
src\aspnetcore\src\Tools\Shared\SecretsHelpers\UserSecretsCreator.cs (2)
39reporter.Output(SecretsHelpersResources.FormatMessage_ProjectAlreadyInitialized(projectPath)); 75reporter.Output(SecretsHelpersResources.FormatMessage_SetUserSecretsIdForProject(newSecretsId, projectPath));