//#region src/cli/command-path-matches.ts
function matchesCommandPath(commandPath, pattern, options) {
	if (options?.exact && commandPath.length !== pattern.length) return false;
	if (commandPath.length < pattern.length) return false;
	return pattern.every((segment, index) => commandPath[index] === segment);
}
//#endregion
export { matchesCommandPath };

//# sourceMappingURL=command-path-matches.js.map