aboutsummaryrefslogtreecommitdiff
path: root/src/actions/background.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/actions/background.js')
-rw-r--r--src/actions/background.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/actions/background.js b/src/actions/background.js
new file mode 100644
index 0000000..40b901b
--- /dev/null
+++ b/src/actions/background.js
@@ -0,0 +1,11 @@
+import actions from '../actions';
+
+export function requestCompletions(line) {
+ let command = line.split(' ', 1)[0];
+ let keywords = line.replace(command + ' ', '');
+ return {
+ type: actions.BACKGROUND_REQUEST_COMPLETIONS,
+ command,
+ keywords
+ };
+}