Skip to content
Snippets Groups Projects
Verified Commit 51e01c50 authored by orestis.malaspin's avatar orestis.malaspin
Browse files

removed useless code

parent aac13e56
No related branches found
No related tags found
1 merge request!8Draft: Resolve "Add bash completion helper function"
Pipeline #29388 passed
import { Command } from 'commander'; import { Command } from 'commander';
import { writeFileSync } from 'fs'; import { writeFileSync } from 'fs';
function isLeaf(cmd: Command): boolean {
return cmd.commands.length == 0
}
function computeDepth(cmd: Command | undefined): number { function computeDepth(cmd: Command | undefined): number {
if (cmd === undefined) { if (cmd === undefined) {
return 0 return 0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment