mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-20 00:53:26 +02:00
- Shell module created.
- Device table now almost works.
This commit is contained in:
16
res/app/control-panes/shell/shell-controller.js
Normal file
16
res/app/control-panes/shell/shell-controller.js
Normal file
@@ -0,0 +1,16 @@
|
||||
module.exports = function ShellCtrl($scope) {
|
||||
$scope.results = []
|
||||
|
||||
$scope.run = function(command) {
|
||||
var cmd = $scope.control.shell(command)
|
||||
return cmd.promise
|
||||
.progressed(function(results) {
|
||||
$scope.results = results
|
||||
$scope.$digest()
|
||||
})
|
||||
.then(function(results) {
|
||||
$scope.results = results
|
||||
$scope.$digest()
|
||||
})
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user