Example #1
0
 def options(self):
     return [
         fb.FBCommandArgument(
             arg="pointer",
             short="-p",
             long="--pointer",
             type="BOOL",
             boolean=True,
             default=False,
             help="Print pointers",
         ),
         fb.FBCommandArgument(
             arg="trait",
             short="-t",
             long="--traits",
             type="BOOL",
             boolean=True,
             default=False,
             help="Print traits",
         ),
         fb.FBCommandArgument(
             arg="frame",
             short="-f",
             long="--frame",
             type="BOOL",
             boolean=True,
             default=False,
             help="Print frames",
         ),
     ]
Example #2
0
 def options(self):
     return [
         fb.FBCommandArgument(
             short="-a",
             long="--address",
             arg="showaddr",
             help="Print the implementation address of the method",
             default=False,
             boolean=True,
         ),
         fb.FBCommandArgument(
             short="-i",
             long="--instance",
             arg="insmethod",
             help="Print the instance methods",
             default=False,
             boolean=True,
         ),
         fb.FBCommandArgument(
             short="-c",
             long="--class",
             arg="clsmethod",
             help="Print the class methods",
             default=False,
             boolean=True,
         ),
         fb.FBCommandArgument(
             short="-n",
             long="--name",
             arg="clsname",
             help="Take the argument as class name",
             default=False,
             boolean=True,
         ),
     ]
Example #3
0
 def options(self):
     return [
         fb.FBCommandArgument(
             short="-c",
             long="--color",
             arg="color",
             type="string",
             default="red",
             help="A color name such as 'red', 'green', 'magenta', etc.",
         ),
         fb.FBCommandArgument(
             short="-w",
             long="--width",
             arg="width",
             type="CGFloat",
             default=2.0,
             help="Desired width of border.",
         ),
         fb.FBCommandArgument(
             short="-d",
             long="--depth",
             arg="depth",
             type="int",
             default=0,
             help=
             "Number of levels of subviews to border. Each level gets a different color beginning with the provided or default color",  # noqa B950
         ),
     ]
Example #4
0
 def args(self):
     return [
         fb.FBCommandArgument(arg="object",
                              type="id",
                              help="Object expression to be evaluated."),
         fb.FBCommandArgument(arg="ivarName",
                              help="Name of instance variable to print."),
     ]
Example #5
0
 def args(self):
     return [
         fb.FBCommandArgument(arg="type", help="Class or protocol name"),
         fb.FBCommandArgument(
             arg="query",
             default=" ",  # space is a hack to mark optional
             help="Query expression, uses NSPredicate syntax",
         ),
     ]
Example #6
0
 def args(self):
     return [
         fb.FBCommandArgument(
             arg="accessibilityId",
             type="string",
             help="The accessibility ID of the input view.",
         ),
         fb.FBCommandArgument(arg="replacementText",
                              type="string",
                              help="The text to set."),
     ]
Example #7
0
 def options(self):
     return [
         fb.FBCommandArgument(short='-f',
                              long='--filename',
                              arg='filename',
                              help='The output filename.'),
         fb.FBCommandArgument(short='-n',
                              long='--no-open',
                              arg='noOpen',
                              boolean=True,
                              default=False,
                              help='Do not open the file.'),
     ]
Example #8
0
 def args(self):
     return [
         fb.FBCommandArgument(
             arg="delay in seconds",
             type="float",
             help="time to wait before executing specified command",
         ),
         fb.FBCommandArgument(
             arg="lldb command",
             type="string",
             help="another lldb command to execute after specified delay",
             default="process interrupt",
         ),
     ]
Example #9
0
 def args(self):
     return [
         fb.FBCommandArgument(
             arg="instance or class",
             type="instance or Class",
             help="an Objective-C Class.",
         )
     ]
Example #10
0
 def args(self):
     return [
         fb.FBCommandArgument(
             arg="control",
             type="UIControl *",
             help="The control to inspect the actions of.",
         )
     ]
Example #11
0
 def options(self):
     return [
         fb.FBCommandArgument(
             short="-f",
             long="--filename",
             arg="filename",
             help="The output filename.",
         ),
         fb.FBCommandArgument(
             short="-n",
             long="--no-open",
             arg="noOpen",
             boolean=True,
             default=False,
             help="Do not open the file.",
         ),
     ]
Example #12
0
 def args(self):
     return [
         fb.FBCommandArgument(
             arg="startResponder",
             type="UIResponder *",
             help="The responder to use to start walking the chain.",
         )
     ]
Example #13
0
 def args(self):
     return [
         fb.FBCommandArgument(
             arg="expression",
             type="string",
             help='Expression to set a breakpoint on, e.g. "-[MyView setFrame:]", "+[MyView awesomeClassMethod]" or "-[0xabcd1234 setFrame:]"',  # noqa B950
         )
     ]
Example #14
0
 def args(self):
     return [
         fb.FBCommandArgument(
             arg="classNameRegex",
             type="string",
             help="The view-class regex to search the view hierarchy for.",
         )
     ]
Example #15
0
 def options(self):
     return [
         fb.FBCommandArgument(
             short="-n",
             long="--name",
             arg="classNameRegex",
             type="string",
             help="The view-controller-class regex to search the view controller hierarchy for.",  # noqa B950
         ),
         fb.FBCommandArgument(
             short="-v",
             long="--view",
             arg="view",
             type="UIView",
             help="This function will print the View Controller that owns this view.",  # noqa B950
         ),
     ]
Example #16
0
 def options(self):
     return [
         fb.FBCommandArgument(
             short="-s",
             long="--set",
             arg="set",
             help="Set debug mode for components",
             boolean=True,
         ),
         fb.FBCommandArgument(
             short="-u",
             long="--unset",
             arg="unset",
             help="Unset debug mode for components",
             boolean=True,
         ),
     ]
Example #17
0
 def args(self):
     return [
         fb.FBCommandArgument(
             arg="viewOrLayer",
             type="UIView/NSView/CALayer *",
             help="The view/layer to border. NSViews must be layer-backed.",
         )
     ]
Example #18
0
 def args(self):
     return [
         fb.FBCommandArgument(
             arg="object",
             type="id",
             help="The NSDictionary or NSArray object to print",
         )
     ]
Example #19
0
 def args(self):
     return [
         fb.FBCommandArgument(
             arg="viewController",
             type="UIViewController *",
             help="The view controller to dismiss.",
         )
     ]
Example #20
0
 def args(self):
     return [
         fb.FBCommandArgument(
             arg="request",
             type="NSURLRequest*/NSMutableURLRequest*",
             help="The request to convert to the curl command.",
         )
     ]
Example #21
0
 def args(self):
     return [
         fb.FBCommandArgument(
             arg="viewOrLayer",
             type="UIView/NSView/CALayer *",
             help="The view/layer to hide.",
         )
     ]
Example #22
0
 def args(self):
     return [
         fb.FBCommandArgument(
             arg="object",
             type="NSObject *",
             help="The Swift Dictionary or Swift Array to print",
         )
     ]
Example #23
0
 def args(self):
     return [
         fb.FBCommandArgument(
             arg="address",
             type="string",
             help="Address within the currently running framework to set a breakpoint on.",  # noqa B950
         )
     ]
Example #24
0
 def options(self):
     return [
         fb.FBCommandArgument(
             short="-u",
             long="--up",
             arg="upwards",
             boolean=True,
             default=False,
             help=
             "Print only the hierarchy directly above the view, up to its window.",  # noqa B950
         ),
         fb.FBCommandArgument(
             short="-d",
             long="--depth",
             arg="depth",
             type="int",
             default="0",
             help="Print only to a given depth. 0 indicates infinite depth.",
         ),
         fb.FBCommandArgument(
             short="-w",
             long="--window",
             arg="window",
             type="int",
             default="0",
             help=
             'Specify the window to print a description of. Check which windows exist with "po (id)[[UIApplication sharedApplication] windows]".',  # noqa B950
         ),
         fb.FBCommandArgument(
             short="-s",
             long="--short",
             arg="short",
             boolean=True,
             default=False,
             help="Print a short description of the view",
         ),
         fb.FBCommandArgument(
             short="-m",
             long="--medium",
             arg="medium",
             boolean=True,
             default=False,
             help="Print a medium description of the view",
         ),
     ]
 def args(self):
     return [
         fb.FBCommandArgument(
             arg="labelRegex",
             type="string",
             help=
             "The accessibility label regex to search the view hierarchy for.",
         )
     ]
Example #26
0
 def args(self):
     return [
         fb.FBCommandArgument(
             arg="speed",
             type="float",
             default=0.1,
             help="Animation speed (default 0.1).",
         )
     ]
Example #27
0
 def args(self):
     return [
         fb.FBCommandArgument(
             arg="aView",
             type="UIView*/NSView*",
             help="The view to print the description of.",
             default="__keyWindow_dynamic__",
         )
     ]
 def args(self):
     return [
         fb.FBCommandArgument(
             arg="aView",
             type="UIView*",
             help="The view to print the hierarchy of.",
             default="(id)[[UIApplication sharedApplication] keyWindow]",
         )
     ]
Example #29
0
 def args(self):
     return [
         fb.FBCommandArgument(
             arg="aViewController",
             type="UIViewController*",
             help="The view controller to print the description of.",
             default="__keyWindow_rootVC_dynamic__",
         )
     ]
Example #30
0
 def args(self):
     return [
         fb.FBCommandArgument(
             arg="element",
             type="XCUIElement*",
             help="The element to print tree.",
             default="__default__",
         )
     ]