# Function: commandCovers()

```ts
function commandCovers(granted, needed): boolean;
```

Defined in: [packages/core/src/identity/ucan.ts:96](https://github.com/leifriksheim/minca/blob/main/core/src/identity/ucan.ts#L96)

Whether a command covers another: itself, and every command under it

## Parameters

| Parameter | Type |
| ------ | ------ |
| `granted` | `string` |
| `needed` | `string` |

## Returns

`boolean`
