Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCommand ¶
func NewDeprecatedTopLevelCommand ¶
NewDeprecatedTopLevelCommand returns a hidden top-level "user" command that preserves backward compatibility for the four UserOperation-issuing commands that existed at the root before the iam refactor:
d8 user lock <user> <duration> d8 user unlock <user> d8 user reset-password <user> <bcryptHash> (legacy 2-positional form) d8 user reset-2fa <user> (alias of reset2fa)
lock / unlock / reset2fa are reused verbatim from the in-package factory (newUserOpCommand) so their flags / completion / wait semantics stay byte-identical with the new `d8 iam user ...` counterparts.
reset-password is the one shape we cannot reuse: the legacy command took a positional bcrypt hash, while the modern iam form expects --password-hash. We rebuild the legacy 2-arg signature explicitly here and delegate the actual UserOperation wire shape to runUserOperation (the same helper the modern command uses), so the only difference is the input-parsing layer.
Other former d8 user surfaces (create / delete / get / list) are NOT re-exposed here — they were either added in this PR (no BC obligation) or never existed at the root (so there is nothing to break).
Types ¶
This section is empty.