Documentation
    Preparing search index...

    Function commandCovers

    • Check if a command is covered by (equal to or a segment-wise child of) another command.

      Commands are compared by path segment, not by string prefix: /crypto covers /crypto and /crypto/sign but not /cryptocurrency. The command / covers every command.

      Both commands are expected to be valid per assertIsValidCommand, so ${parent}/ is always a real segment boundary.

      Parameters

      • parent: string

        The broader command, e.g. from a delegation.

      • child: string

        The command that must be attenuated from parent.

      Returns boolean