MCPcopy Create free account
hub / github.com/smallstep/cli / allowCommand

Function allowCommand

command/ca/policy/ssh/user/allow.go:13–25  ·  view source on GitHub ↗

allowCommand returns the SSH user allow subcommand.

(ctx context.Context)

Source from the content-addressed store, hash-verified

11
12// allowCommand returns the SSH user allow subcommand.
13func allowCommand(ctx context.Context) cli.Command {
14 ctx = policycontext.WithAllow(ctx)
15 return cli.Command{
16 Name: "allow",
17 Usage: "manage allowed SSH user certificate principals",
18 UsageText: "**step ca policy ssh user allow** <subcommand> [arguments] [global-flags] [subcommand-flags]",
19 Description: `**step ca policy ssh user allow** command group provides facilities for managing SSH user certificate principals to be allowed.`,
20 Subcommands: cli.Commands{
21 actions.EmailCommand(ctx),
22 actions.PrincipalsCommand(ctx),
23 },
24 }
25}

Callers 1

CommandFunction · 0.70

Calls 3

WithAllowFunction · 0.92
EmailCommandFunction · 0.92
PrincipalsCommandFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…