1. 30 10月, 2016 10 次提交
    • B
      Remember to add ignore-glob to the help · 93f8ad27
      Ben S 提交于
      93f8ad27
    • B
      Basic glob ignoring · 95596297
      Ben S 提交于
      See #97 and recently #130 too.
      
      This allows the user to pass in options such as "--ignore '*.pyc'" to not list any files ending in '.pyc' in the output. It uses the Rust glob crate and currently does a simple split on pipe, without any escaping, so it’s not really *complete*, but is at least something.
      95596297
    • B
      Make the views non-Copy · a6712994
      Ben S 提交于
      This has to be done for when ignore patterns get introduced and have to be stored in a Vec.
      a6712994
    • B
      Fix integration test by making it time-independent · bd2a76b4
      Ben S 提交于
      bd2a76b4
    • B
      Properly handle errors when following a symlink · 74358c18
      Ben S 提交于
      Fixes #123. The code assumes that every File that has its link_target() method called would first have been checked to make sure it’s actually a link first. Unfortunately it also assumed that the only thing that can go wrong while following a link is if the file wasn’t a link, meaning it crashes when given a link it doesn’t have permission to follow.
      
      This makes the file_target() method able to return either a file or path for displaying, as before, but also an IO error for when things go wrong.
      74358c18
    • B
      Add some symlink testcases · ba366fc8
      Ben S 提交于
      ba366fc8
    • B
      This lint flag started to cause all kinds of fuss · dcc17b1d
      Ben S 提交于
      dcc17b1d
    • B
      Add .tgz to the compressed file extensions · 36d9b684
      Ben S 提交于
      Fixes #129
      36d9b684
    • B
      Write some file-type integration tests · 9589496a
      Ben S 提交于
      9589496a
    • B
      Only engage the view when there are files to show · a7e3456b
      Ben S 提交于
      This changes the way that views are used to display the actual lists of files. It used to pass empty vectors to the view methods, which most of the time would not print anything because there are no files to list — except when there’s a header row which gets printed for no files.
      
      By not calling the view method at all when there’s nothing to print, exa won’t ever print extra things in the view unless it needs to for a file.
      
      This fixes #106 “Don’t print the header if the result set is empty”
      a7e3456b
  2. 08 10月, 2016 1 次提交
    • B
      Replace the testcases script with a Vagrant VM · 54067bf7
      Benjamin Sago 提交于
      See the README section for more details. Basically, with this way, we can store a bunch of existing valid exa outputs, change a VM's environment to match our values, then check that exa still works by comparing outputs.
      54067bf7
  3. 06 10月, 2016 1 次提交
  4. 05 10月, 2016 3 次提交
  5. 29 8月, 2016 1 次提交
    • B
      Add legal values to error messages · 7e15e0dd
      Brandon W Maister 提交于
      Now when you do `--sort time` instead of saying "unknown option --sort
      time" it will say "unknown options '--sort time' (choices: name...)"
      with all legal options.
      
      This also adds the legal values to the default help text.
      7e15e0dd
  6. 31 7月, 2016 1 次提交
  7. 30 7月, 2016 1 次提交
  8. 02 7月, 2016 1 次提交
  9. 14 6月, 2016 1 次提交
  10. 11 6月, 2016 5 次提交
  11. 24 5月, 2016 2 次提交
  12. 03 5月, 2016 1 次提交
  13. 27 4月, 2016 1 次提交
    • B
      Fix the Travis build · 299289d7
      Benjamin Sago 提交于
      The tests, as I so clearly wrote a comment to indicate, can only be run after the script to generate the testcases has been run...
      299289d7
  14. 19 4月, 2016 2 次提交
    • B
      Convert exa into a library · 110a1c71
      Benjamin Sago 提交于
      This commit removes the 'main' function present in main.rs, renames it to exa.rs, and puts the 'main' function in its own binary. This, I think, makes it more clear how the program works and where the main entry point is.
      
      Librarification also means that we can start testing as a whole. Two tests have been added that test everything, passing in raw command-line arguments then comparing against the binary coloured text that gets produced.
      
      Casualties include having to specifically mark some code blocks in documentation as 'tests', as rustdoc kept on trying to execute my ANSI art.
      110a1c71
    • B
      Change views to print to a Writer, not stdout · a02f37cb
      Benjamin Sago 提交于
      This will mean that we can test exa's output as a whole, without having to rely on process or IO or anything like that.
      a02f37cb
  15. 18 4月, 2016 3 次提交
  16. 17 4月, 2016 6 次提交