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 {
2929 // -------------------------------------------------------------------------
3030 // fabric.api
3131 // -------------------------------------------------------------------------
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" ] ) }
3434
3535 /** Provides models for the `fabric.api` module */
3636 module Api {
Original file line number Diff line number Diff line change 1212local (command = "cmd1; cmd2" ) # $getCommand="cmd1; cmd2"
1313run (command = "cmd1; cmd2" ) # $getCommand="cmd1; cmd2"
1414sudo (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