MCPcopy Create free account
hub / github.com/chasingboy/Xtools / run

Method run

xtools.py:133–139  ·  view source on GitHub ↗
(self, edit, cmd)

Source from the content-addressed store, hash-verified

131 return text
132
133 def run(self, edit, cmd):
134 text = self.remove(edit)
135 domains,rootdomains = select_domain(self.view)
136 update_file(self.view, edit, text)
137
138 text = '\n'.join(rootdomains) if cmd == 'root' else '\n'.join(domains)
139 new_view(self.view, edit, text)
140
141
142class FilterDnsCdnHostCommand(sublime_plugin.TextCommand):

Callers

nothing calls this directly

Calls 4

removeMethod · 0.95
select_domainFunction · 0.85
update_fileFunction · 0.85
new_viewFunction · 0.85

Tested by

no test coverage detected