aboutsummaryrefslogblamecommitdiff
path: root/src/actions/console.js
blob: e0ec6318ac1449cc1db79edebf66961b888c42ab (plain) (tree)
1
2
3
4
5
6
7
8
9
                                 
                               


                                       
  
 
                                         

                                          
  
 
                             


                                     
  
 
                    
                              

                                                        
import actions from '../actions';

const showCommand = (text) => {
  return {
    type: actions.CONSOLE_SHOW_COMMAND,
    text: text
  };
};

const setCompletions = (completions) => {
  return {
    type: actions.CONSOLE_SET_COMPLETIONS,
    completions: completions
  };
};

const showError = (text) => {
  return {
    type: actions.CONSOLE_SHOW_ERROR,
    text: text
  };
};

const hide = () => {
  return {
    type: actions.CONSOLE_HIDE
  };
};

export { showCommand, setCompletions, showError, hide };