aboutsummaryrefslogtreecommitdiff
path: root/src/actions/console.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/actions/console.js')
-rw-r--r--src/actions/console.js28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/actions/console.js b/src/actions/console.js
new file mode 100644
index 0000000..99a46e8
--- /dev/null
+++ b/src/actions/console.js
@@ -0,0 +1,28 @@
+import actions from '../actions';
+
+export function showCommand(text) {
+ return {
+ type: actions.CONSOLE_SHOW_COMMAND,
+ text: text
+ };
+}
+
+export function setCompletions(completions) {
+ return {
+ type: actions.CONSOLE_SET_COMPLETIONS,
+ completions: completions
+ };
+}
+
+export function showError(text) {
+ return {
+ type: actions.CONSOLE_SHOW_ERROR,
+ text: text
+ };
+}
+
+export function hide() {
+ return {
+ type: actions.CONSOLE_HIDE
+ };
+}