Skip to content
Permalink
Branch: master
Commits on Aug 4, 2017
  1. Add new contribution sections to README

    fleischie committed Aug 4, 2017
    - Add "doc" and "test" to the allcontributor setup.
    - Run `contributor:generate` script to amend contribution sections to
      the README.
  2. Implement search command

    fleischie committed Aug 4, 2017
    - Setup `search` action in 'bin/moro.js', that passes the arguments to
      the command.
    - Setup `search` command in `lib/commands.js`, that runs the database
      lookup with the desired term.
    - Setup `getSearchTerm` function in `lib/db.js`, that fetches the search
      term and calls the helper function `printSearchResults`.
    - Setup `printSearchResults`, which formats the given data.
Commits on May 6, 2017
  1. Add @heppu as a contributor

    fleischie committed May 6, 2017
  2. Add @Wolf-Rost as a contributor

    fleischie committed May 6, 2017
  3. Add @fleischie as a contributor

    fleischie committed May 6, 2017
  4. Add @mario-s as a contributor

    fleischie committed May 6, 2017
  5. Add @omidfi as a contributor

    fleischie committed May 6, 2017
    Also move contributor-badge to after list of existing badges.
  6. Add `all-contributors` related scripts

    fleischie committed May 6, 2017
    Add shortcuts for adding new contributors (`npm run contributor:add`)
    and re-generating the according information (`npm run
    contributor:generate`).
Commits on Mar 31, 2017
  1. Validate `config --format` arguments (#58)

    fleischie authored and albacoretuna committed Mar 31, 2017
    Check, whether the required arguments are available and valid.
  2. Restyle table (#57)

    fleischie authored and albacoretuna committed Mar 31, 2017
    * Remove ':' separator
    
    The table is visually marked up to separate the title and value of it's
    item, an extra ':' is redundant and inconsistent with `Note`.
    
    * Remove unnecessary `colSpan` attribute
    
    Merge first two columns of the full report table, thus removing an
    initial separation of columns and a manual merge in every `table.push`
    call.
    
    * Use template strings to simplify output
    
    Also enclose default ending value in parenthesis to emphazise it's not a
    specific value.
    
    * Style full report table consistently
    
    Remove style-clearing of the full report table to make it consistent
    with the daily report table, which has a default styling as well.
  3. (#50) Use ora for logging (#56)

    fleischie authored and albacoretuna committed Mar 31, 2017
    * Update `ora` dependency
    
    Version `1.2.0` includes `#warn` and `#info` methods, that can be
    utilized to augment logging.
    
    * Replace `console.error` with `spinner.fail`
    
    Instead of merely logging the error (e.g. from rejected promises) use
    the available spinner instance to persist error message with a visual
    hint.
    
    * Replace database fail-logging
    
    Replace the `console.log` calls for missing files/empty database files
    with calls to `spinner.fail`.
    
    * Fix uncaught promise rejection
    
    Seemingly `fs.unlink(...).then(...).catch(...).finally(...)` is not a
    function, resp. it results in a `Uncaught PromiseRejection` error.
    Removing this function chain removes the error, without influencing the
    functionality.
    
    Also remove unnecessary `return` stmt.
    
    * Add spinner-logging to `moro hi` command
    
    - Remove `logger` argument to utility function.
    - Replace `console.log` calls with appropriate `spinner` calls.
    
    * Add spinner-logging to `moro bye`
    
    This includes adding spinner-logging to `moro report`.
    
    * Add spinner-logging to 'moro about'
    
    - Change `constants.TEXT.about` to have the line-breaks at it's end.
    
    * Add spinner-logging to `moro break`
    
    * Add spinner-logging to `moro note`
    
    * Add spinner-logging to `moro config`
    
    * Add spinner-logging to `moro clear`
    
    * Add spinner-logging to `moro report --all`
    
    * Add spinner-logging to warnings
    
    * Fix tests
Commits on Mar 28, 2017
  1. Make database path dynamically changeable

    fleischie committed Mar 28, 2017
    This commit refactors the way the database path is resolved and used by
    moro's db-driver. Instead of manually combining the default name to the
    home-dir - which is the default by the way - the config file is
    consulted first and it's path is used if it's not empty. If it's empty
    the default db path is used.
    
    - Read db path from config file if possible, fallback to default path.
    - Explicitly setup the db path of the test db.
    - Use resolved db file path for removal, instead of using the given one
      via parameter.
    - Remove unnecessary `console.log` call.
    
    Additionally adapt tests to function with the current setup:
    - Install and use `cross-env` to setup test mode.
    - Use exported `dbTestFile` instead of manually creating it.
    - Fix removal test to use new signature of `removeDatabase`.
  2. Fix `standard` issues

    fleischie committed Mar 28, 2017
    - Remove unnecessary whitespace.
    - Add necessary parenthesis.
  3. Add command line option to set the database path

    fleischie committed Mar 28, 2017
    - Add help text to `constants.json`.
    - Add default configuration item to `config.json`.
    - Add option `--datapase-path` to the `config` command.
  4. Add validator function for the database path

    fleischie committed Mar 28, 2017
    - Add `expand-home-dir` package to handle `~` paths.
    - Create function, that takes an option and validates, whether it is a
      valid path.
You can’t perform that action at this time.