File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
lib/semmle/python/frameworks
test/library-tests/frameworks/fabric Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -29,8 +29,8 @@ private module FabricV1 {
29
29
// -------------------------------------------------------------------------
30
30
// fabric.api
31
31
// -------------------------------------------------------------------------
32
- /** Gets a reference to the `fabric.api` module. */
33
- API:: Node api ( ) { result = fabric ( ) .getMember ( "api" ) }
32
+ /** Gets a reference to the `fabric.api` module. Also known as `fabric.operations` */
33
+ API:: Node api ( ) { result = fabric ( ) .getMember ( [ "api" , "operations" ] ) }
34
34
35
35
/** Provides models for the `fabric.api` module */
36
36
module Api {
Original file line number Diff line number Diff line change 12
12
local (command = "cmd1; cmd2" ) # $getCommand="cmd1; cmd2"
13
13
run (command = "cmd1; cmd2" ) # $getCommand="cmd1; cmd2"
14
14
sudo (command = "cmd1; cmd2" ) # $getCommand="cmd1; cmd2"
15
+
16
+ from fabric import operations
17
+
18
+ operations .local ("cmd1; cmd2" ) # $getCommand="cmd1; cmd2"
19
+ operations .local (command = "cmd1; cmd2" ) # $getCommand="cmd1; cmd2"
You can’t perform that action at this time.
0 commit comments