summaryrefslogtreecommitdiff
path: root/app/client/system/system.actions.js
blob: a318d68d508abf18d37c50842ff5169806ddc0d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import socket from '../socket'
import types from '../types'

export const run = (cmd) => {
  socket.system.run_system_command(cmd)
  return { type: types.system.running_command, cmd }
}

export const listDirectory = (opt) => {
  socket.system.list_directory(opt)
  return { type: types.system.listing_directory, opt }
}

export const changeTool = (tool) => {
  return { type: types.app.change_tool, tool }
}