File tree Expand file tree Collapse file tree 1 file changed +24
-4
lines changed Expand file tree Collapse file tree 1 file changed +24
-4
lines changed Original file line number Diff line number Diff line change @@ -30,12 +30,31 @@ def run_command(cmd):
3030
3131
3232def search_key_for_board (board ):
33- elements = []
34- elements .append (board ["name" ])
35- elements .append (board ["FQBN" ])
36- return u" " .join (elements )
33+ elements = [
34+ board ["name" ],
35+ board ["FQBN" ]
36+ ]
37+ return " " .join (elements )
38+
3739
40+ def search_key_for_lib (lib ):
41+ elements = [
42+ lib ["library" ]["name" ],
43+ lib ["library" ]["sentence" ]
44+ ]
45+ return " " .join (elements )
46+
3847
48+ def search_key_for_lib2 (lib ):
49+ elements = [
50+ lib ["name" ],
51+ lib ["latest" ]["author" ],
52+ lib ["latest" ]["maintainer" ],
53+ lib ["latest" ]["sentence" ]
54+ ]
55+ return " " .join (elements )
56+
57+
3958class Handler :
4059
4160 def __init__ (self , args , wf ):
@@ -72,6 +91,7 @@ def wrapper():
7291
7392 # Send the results to Alfred as XML
7493 self .wf .send_feedback ()
94+
7595
7696 def handle_board_listall (self ):
7797
You can’t perform that action at this time.
0 commit comments