Skip to content

Commit 2f59f99

Browse files
committed
Add file
1 parent 32a77ab commit 2f59f99

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

cadence/transactions/test.cdc

Lines changed: 0 additions & 5 deletions
This file was deleted.

internal/command/command.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ import (
4747
"github.com/onflow/flowkit/v2/output"
4848

4949
"github.com/onflow/flow-cli/build"
50+
"github.com/onflow/flow-cli/common/branding"
5051
"github.com/onflow/flow-cli/internal/prompt"
5152
"github.com/onflow/flow-cli/internal/settings"
5253
"github.com/onflow/flow-cli/internal/util"
@@ -345,12 +346,15 @@ func checkForInlineKeys(state *flowkit.State, logger output.Logger) {
345346
}
346347

347348
if len(inlineKeyAccounts) > 0 {
349+
cmd := branding.GreenStyle.Render("flow config extract-key --all")
348350
logger.Info(fmt.Sprintf(
349351
"\n%s Security warning: %d account(s) have private keys stored directly in flow.json: %s\n"+
350-
" Extract them to separate key files by running: flow config extract-key --all\n",
352+
" Extract them to separate key files by running: %s\n"+
353+
" Learn more: https://developers.flow.com/build/tools/flow-cli/flow.json/security\n",
351354
output.WarningEmoji(),
352355
len(inlineKeyAccounts),
353356
strings.Join(inlineKeyAccounts, ", "),
357+
cmd,
354358
))
355359
}
356360
}

0 commit comments

Comments
 (0)