(command.CommandList children: [ (command.FuncDef name: _cryptsetup_name body: (command.BraceGroup children: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY) op: Equal rhs: { (word_part.ArrayLiteralPart words: [ { (word_part.CommandSubPart command_list: (command.CommandList children: [ (C {(compgen)} {(-X)} {(control)} {(-W)} {(SQ <'$( command ls /dev/mapper )'>)} {(--)} {(DQ ($ VSub_DollarName '$cur'))} ) ] ) left_token: <Left_CommandSub '$('> ) } ] ) } ) ] ) ] ) ) (command.FuncDef name: _cryptsetup_device body: (command.BraceGroup children: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:cur) op: Equal rhs: { (word_part.BracedVarSub token: <VSub_Name cur> suffix_op: (suffix_op.StringUnary op_id: VTest_ColonEquals arg_word: {(Lit_Slash /) (dev) (Lit_Slash /)} ) ) } ) ] ) (C {(_filedir)}) ] ) ) (command.AndOr ops: [Op_DAmp] children: [ (command.FuncDef name: _cryptsetup body: (command.BraceGroup children: [ (command.Assignment keyword: Assign_Local pairs: [ (assign_pair lhs:(lhs_expr.LhsName name:cur) op:Equal) (assign_pair lhs:(lhs_expr.LhsName name:prev) op:Equal) (assign_pair lhs:(lhs_expr.LhsName name:words) op:Equal) (assign_pair lhs:(lhs_expr.LhsName name:cword) op:Equal) (assign_pair lhs:(lhs_expr.LhsName name:split) op:Equal) ] ) (command.AndOr ops: [Op_DPipe] children: [ (C {(_init_completion)} {(-s)}) (command.ControlFlow token:<ControlFlow_Return return>) ] ) (command.Case to_match: {($ VSub_DollarName '$prev')} arms: [ (case_arm pat_list: [{(--key-file)} {(--master-key-file)} {(--header-backup-file)} {(-d)}] action: [ (C {(_filedir)}) (command.ControlFlow token: <ControlFlow_Return return> arg_word: {(0)} ) ] ) ] ) (command.AndOr ops: [Op_DAmp] children: [ (C {($ VSub_DollarName '$split')}) (command.ControlFlow token:<ControlFlow_Return return>) ] ) (command.Assignment keyword: Assign_Local pairs: [(assign_pair lhs:(lhs_expr.LhsName name:arg) op:Equal)] ) (C {(_get_first_arg)}) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.DBracket expr: (bool_expr.BoolUnary op_id: BoolUnary_z child: {($ VSub_DollarName '$arg')} ) ) terminator: <Op_Semi ';'> ) ] action: [ (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.DBracket expr: (bool_expr.BoolBinary op_id: BoolBinary_GlobDEqual left: {(DQ ($ VSub_DollarName '$cur'))} right: {(-) (Lit_Other '*')} ) ) terminator: <Op_Semi ';'> ) ] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY) op: Equal rhs: { (word_part.ArrayLiteralPart words: [ { (word_part.CommandSubPart command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} {(SQ <'$( _parse_help "$1" )'>)} {(--)} {(DQ ($ VSub_DollarName '$cur'))} ) ] ) left_token: <Left_CommandSub '$('> ) } ] ) } ) ] ) (command.AndOr ops: [Op_DAmp] children: [ (command.DBracket expr: (bool_expr.BoolBinary op_id: BoolBinary_GlobDEqual left: {($ VSub_DollarName '$COMPREPLY')} right: {(Lit_Other '*') (BoolBinary_GlobEqual '=')} ) ) (C {(compopt)} {(-o)} {(nospace)}) ] ) ] ) ] else_action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY) op: Equal rhs: { (word_part.ArrayLiteralPart words: [ { (word_part.CommandSubPart command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} { (SQ < 'create remove status resize luksFormat\n' > <' luksOpen luksClose luksSuspend luksResume luksAddKey\n'> < ' luksRemoveKey luksKillSlot luksDelKey luksUUID isLuks\n' > <' luksDump luksHeaderBackup luksHeaderRestore'> ) } {(--)} {(DQ ($ VSub_DollarName '$cur'))} ) ] ) left_token: <Left_CommandSub '$('> ) } ] ) } ) ] ) ] ) ] ) ] else_action: [ (command.Assignment keyword: Assign_Local pairs: [(assign_pair lhs:(lhs_expr.LhsName name:args) op:Equal)] ) (C {(_count_args)}) (command.Case to_match: {($ VSub_DollarName '$arg')} arms: [ (case_arm pat_list: [{(create)}] action: [ (command.Case to_match: {($ VSub_DollarName '$args')} arms: [ (case_arm pat_list: [{(2)}] action: [(C {(_cryptsetup_name)})] ) (case_arm pat_list: [{(3)}] action: [(C {(_cryptsetup_device)})] ) ] ) ] ) (case_arm pat_list: [ {(remove)} {(status)} {(resize)} {(luksClose)} {(luksSuspend)} {(luksResume)} ] action: [ (command.Case to_match: {($ VSub_DollarName '$args')} arms: [(case_arm pat_list:[{(2)}] action:[(C {(_cryptsetup_name)})])] ) ] ) (case_arm pat_list: [{(luksFormat)} {(luksAddKey)} {(luksRemoveKey)}] action: [ (command.Case to_match: {($ VSub_DollarName '$args')} arms: [ (case_arm pat_list: [{(2)}] action: [(C {(_cryptsetup_device)})] ) (case_arm pat_list: [{(3)}] action: [(C {(_filedir)})] ) ] ) ] ) (case_arm pat_list: [{(luksOpen)}] action: [ (command.Case to_match: {($ VSub_DollarName '$args')} arms: [ (case_arm pat_list: [{(2)}] action: [(C {(_cryptsetup_device)})] ) (case_arm pat_list: [{(3)}] action: [(C {(_cryptsetup_name)})] ) ] ) ] ) (case_arm pat_list: [{(luksKillSlot)} {(luksDelKey)} {(luksUUID)} {(isLuks)} {(luksDump)}] action: [ (command.Case to_match: {($ VSub_DollarName '$args')} arms: [(case_arm pat_list:[{(2)}] action:[(C {(_cryptsetup_device)})])] ) ] ) (case_arm pat_list: [{(luksHeaderBackup)} {(luksHeaderRestore)}] action: [ (command.Case to_match: {($ VSub_DollarName '$args')} arms: [ (case_arm pat_list: [{(2)}] action: [(C {(_cryptsetup_device)})] ) (case_arm pat_list: [{(3)}] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY) op: Equal rhs: { (word_part.ArrayLiteralPart words: [{(SQ <--header-backup-file>)}] ) } ) ] ) ] ) ] ) ] ) ] ) ] ) (command.ControlFlow token:<ControlFlow_Return return> arg_word:{(0)}) ] ) ) (C {(complete)} {(-F)} {(_cryptsetup)} {(cryptsetup)}) ] ) ] )