Ejemplo n.º 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",
         ),
     ]
Ejemplo n.º 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,
         ),
     ]
Ejemplo n.º 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
         ),
     ]
Ejemplo n.º 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."),
     ]
Ejemplo n.º 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",
         ),
     ]
Ejemplo n.º 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."),
     ]
Ejemplo n.º 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.'),
     ]
Ejemplo n.º 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",
         ),
     ]
Ejemplo n.º 9
0
 def args(self):
     return [
         fb.FBCommandArgument(
             arg="instance or class",
             type="instance or Class",
             help="an Objective-C Class.",
         )
     ]
Ejemplo n.º 10
0
 def args(self):
     return [
         fb.FBCommandArgument(
             arg="control",
             type="UIControl *",
             help="The control to inspect the actions of.",
         )
     ]
Ejemplo n.º 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.",
         ),
     ]
Ejemplo n.º 12
0
 def args(self):
     return [
         fb.FBCommandArgument(
             arg="startResponder",
             type="UIResponder *",
             help="The responder to use to start walking the chain.",
         )
     ]
Ejemplo n.º 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
         )
     ]
Ejemplo n.º 14
0
 def args(self):
     return [
         fb.FBCommandArgument(
             arg="classNameRegex",
             type="string",
             help="The view-class regex to search the view hierarchy for.",
         )
     ]
Ejemplo n.º 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
         ),
     ]
Ejemplo n.º 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,
         ),
     ]
Ejemplo n.º 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.",
         )
     ]
Ejemplo n.º 18
0
 def args(self):
     return [
         fb.FBCommandArgument(
             arg="object",
             type="id",
             help="The NSDictionary or NSArray object to print",
         )
     ]
Ejemplo n.º 19
0
 def args(self):
     return [
         fb.FBCommandArgument(
             arg="viewController",
             type="UIViewController *",
             help="The view controller to dismiss.",
         )
     ]
Ejemplo n.º 20
0
 def args(self):
     return [
         fb.FBCommandArgument(
             arg="request",
             type="NSURLRequest*/NSMutableURLRequest*",
             help="The request to convert to the curl command.",
         )
     ]
Ejemplo n.º 21
0
 def args(self):
     return [
         fb.FBCommandArgument(
             arg="viewOrLayer",
             type="UIView/NSView/CALayer *",
             help="The view/layer to hide.",
         )
     ]
Ejemplo n.º 22
0
 def args(self):
     return [
         fb.FBCommandArgument(
             arg="object",
             type="NSObject *",
             help="The Swift Dictionary or Swift Array to print",
         )
     ]
Ejemplo n.º 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
         )
     ]
Ejemplo n.º 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",
         ),
     ]
Ejemplo n.º 25
0
 def args(self):
     return [
         fb.FBCommandArgument(
             arg="labelRegex",
             type="string",
             help=
             "The accessibility label regex to search the view hierarchy for.",
         )
     ]
Ejemplo n.º 26
0
 def args(self):
     return [
         fb.FBCommandArgument(
             arg="speed",
             type="float",
             default=0.1,
             help="Animation speed (default 0.1).",
         )
     ]
Ejemplo n.º 27
0
 def args(self):
     return [
         fb.FBCommandArgument(
             arg="aView",
             type="UIView*/NSView*",
             help="The view to print the description of.",
             default="__keyWindow_dynamic__",
         )
     ]
Ejemplo n.º 28
0
 def args(self):
     return [
         fb.FBCommandArgument(
             arg="aView",
             type="UIView*",
             help="The view to print the hierarchy of.",
             default="(id)[[UIApplication sharedApplication] keyWindow]",
         )
     ]
Ejemplo n.º 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__",
         )
     ]
Ejemplo n.º 30
0
 def args(self):
     return [
         fb.FBCommandArgument(
             arg="element",
             type="XCUIElement*",
             help="The element to print tree.",
             default="__default__",
         )
     ]