1. 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
  2. 02 7月, 2016 1 次提交
  3. 14 6月, 2016 1 次提交
  4. 11 6月, 2016 5 次提交
  5. 24 5月, 2016 2 次提交
  6. 03 5月, 2016 1 次提交
  7. 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
  8. 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
  9. 18 4月, 2016 3 次提交
  10. 17 4月, 2016 7 次提交
  11. 12 4月, 2016 1 次提交
    • B
      Print the parent path for passed-in files · 9b87ef1d
      Benjamin Sago 提交于
      This commit changes all the views to accommodate printing each path's prefix, if it has one.
      
      Previously, each file was stripped of its ancestry, leaving only its file name to be displayed. So running "exa /usr/bin/*" would display only filenames, while running "ls /usr/bin/*" would display each file prefixed with "/usr/bin/". But running "ls /usr/bin/" -- without the glob -- would run ls on just the directory, printing out the file names with no prefix or anything.
      
      This functionality turned out to be useful in quite a few situations: firstly, if the user passes in files from different directories, it would be hard to tell where they came from (especially if they have the same name, such as find | xargs). Secondly, this also applied when following symlinks, making it unclear exactly which file a symlink would be pointing to.
      
      The reason that it did it this way beforehand was that I didn't think of these use-cases, rather than for any technical reason; this new method should not have any drawbacks save making the output slightly wider in a few cases. Compatibility with ls is also a big plus.
      
      Fixes #104, and relates to #88 and #92.
      9b87ef1d
  12. 11 4月, 2016 1 次提交
  13. 06 4月, 2016 1 次提交
  14. 01 4月, 2016 4 次提交
    • B
      Always sort files the same way · f6c5c89f
      Ben S 提交于
      This fixes a bug where extra sorting options (dirs first, reverse) were not applied when listing in long mode. In other words, fixes #105.
      
      The bug occurred because the sorting function only took Files, but the details view uses File eggs that only contain Files. This commit changes the sorting function to accept anything that AsRefs to File, and impls that on both File and Egg so the same function works for both.
      f6c5c89f
    • B
      Replace deprecated raw types with libc ones · eaa799c6
      Ben S 提交于
      This limits it to stable until the APIs stabilise (weird, huh?)
      eaa799c6
    • B
      Use only the time zone data present on the system · ee4c09dd
      Ben S 提交于
      Thinking about it, it doesn't make sense to use an *external* time zone source when the program we want to compare it to, ls, uses the system one. So just use the system one.
      
      Also, handle the case where the time zone data file can't be loaded by showing the files in UTC rather than falling over and quitting.
      ee4c09dd
    • B
      Versions bumps · 1dd9e615
      Ben S 提交于
      1dd9e615
  15. 19 3月, 2016 1 次提交
  16. 18 3月, 2016 4 次提交
  17. 13 3月, 2016 1 次提交
  18. 11 2月, 2016 3 次提交