From 541c1e8b9f0e2e12bd770100888129639cc94827 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Fri, 24 Mar 2017 10:15:41 +1300 Subject: addons: start -> load throughout --- examples/simple/custom_option.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/simple/custom_option.py') diff --git a/examples/simple/custom_option.py b/examples/simple/custom_option.py index 324d27e7..3190b840 100644 --- a/examples/simple/custom_option.py +++ b/examples/simple/custom_option.py @@ -1,7 +1,7 @@ from mitmproxy import ctx -def start(options): +def load(options): ctx.log.info("Registering option 'custom'") options.add_option("custom", bool, False, "A custom option") -- cgit v1.2.3 From 65f0885bd6809966f694d1ffb965401b8ab2cffc Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Fri, 24 Mar 2017 11:29:36 +1300 Subject: addon loader: add boot_into, which replaces returning from start() While we're here, expand test coverage for addonmanager to 100%, and promote to individual coverage. --- examples/simple/custom_option.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/simple/custom_option.py') diff --git a/examples/simple/custom_option.py b/examples/simple/custom_option.py index 3190b840..c8bc98d4 100644 --- a/examples/simple/custom_option.py +++ b/examples/simple/custom_option.py @@ -1,9 +1,9 @@ from mitmproxy import ctx -def load(options): +def load(l): ctx.log.info("Registering option 'custom'") - options.add_option("custom", bool, False, "A custom option") + l.add_option("custom", bool, False, "A custom option") def configure(options, updated): -- cgit v1.2.3