mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-08 05:27:52 +00:00
misc: hide not found text when flag plain is enabled
This commit is contained in:
@@ -415,11 +415,13 @@ func getSecretsByNames(cmd *cobra.Command, args []string) {
|
|||||||
if value, ok := secretsMap[secretKeyFromArg]; ok {
|
if value, ok := secretsMap[secretKeyFromArg]; ok {
|
||||||
requestedSecrets = append(requestedSecrets, value)
|
requestedSecrets = append(requestedSecrets, value)
|
||||||
} else {
|
} else {
|
||||||
requestedSecrets = append(requestedSecrets, models.SingleEnvironmentVariable{
|
if !(plainOutput || showOnlyValue) {
|
||||||
Key: secretKeyFromArg,
|
requestedSecrets = append(requestedSecrets, models.SingleEnvironmentVariable{
|
||||||
Type: "*not found*",
|
Key: secretKeyFromArg,
|
||||||
Value: "*not found*",
|
Type: "*not found*",
|
||||||
})
|
Value: "*not found*",
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user