- 05 10月, 2016 3 次提交
-
-
由 Benjamin Sago 提交于
Add legal values to error messages
-
由 Benjamin Sago 提交于
Change to put error messages into stderr
-
由 Benjamin Sago 提交于
Change to ignore broken pipe error
-
- 29 8月, 2016 1 次提交
-
-
由 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.
-
- 31 7月, 2016 1 次提交
-
-
由 Gemmarx 提交于
-
- 30 7月, 2016 1 次提交
-
-
由 Gemmarx 提交于
-
- 02 7月, 2016 1 次提交
-
-
由 Benjamin Sago 提交于
Exa now recognizes pipes, devices, and sockets on unix systems
-
- 14 6月, 2016 1 次提交
-
-
由 Linden Krouse 提交于
-
- 11 6月, 2016 5 次提交
- 24 5月, 2016 2 次提交
-
-
由 Benjamin Sago 提交于
-
由 Benjamin Sago 提交于
Fix building without default features
-
- 03 5月, 2016 1 次提交
-
-
由 Hendrik Sollich 提交于
-
- 27 4月, 2016 1 次提交
-
-
由 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...
-
- 19 4月, 2016 2 次提交
-
-
由 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.
-
由 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.
-
- 18 4月, 2016 3 次提交
-
-
由 Benjamin Sago 提交于
-
由 Benjamin Sago 提交于
-
由 Benjamin Sago 提交于
The original options was becoming a bit unwieldy, and would have been even more so if I added the same amount of comments. So this commit splits it up. There's no extra hiding going on here, or rearranging things within the module: (almost) everything now has to be marked 'pub' to let other sub-modules in the new options module to see it.
-
- 17 4月, 2016 7 次提交
-
-
由 Benjamin Sago 提交于
The trait was only used internally to the options module, so it doesn't actually need to be exist or implemented on anything! We can just impl them directly on the types and have those methods be local to the module.
-
由 Benjamin Sago 提交于
They were the same as the archive/compressed extensions, and I never noticed!
-
由 Benjamin Sago 提交于
Currently these routines number two: file type checking based on a file's name, and source file checking, also based on the file's name.
-
由 Benjamin Sago 提交于
-
由 Benjamin Sago 提交于
-
由 Benjamin Sago 提交于
This commit moves file, dir, and the feature modules into one parent 'fs' module. Now there are three main 'areas' of the code: main and options, the filesystem-touching code, and the output-displaying code. It should be the case that nothing in 'output' touches 'std::fs'.
-
由 Benjamin Sago 提交于
Fixes #108. MetadataExt now returns direct numeric types rather than platform-specific ones, so we need to adjust the functions that use these to have the new types. I've just aliased the types to specific ones so the rest of the code remains the same (file.rs is the only place that uses this) The RFC that changed this is here: https://github.com/rust-lang/rust/pull/31551
-
- 12 4月, 2016 1 次提交
-
-
由 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.
-
- 11 4月, 2016 1 次提交
-
-
由 Benjamin Sago 提交于
-
- 06 4月, 2016 1 次提交
-
-
由 Benjamin Sago 提交于
-
- 01 4月, 2016 4 次提交
-
-
由 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.
-
由 Ben S 提交于
This limits it to stable until the APIs stabilise (weird, huh?)
-
由 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.
-
由 Ben S 提交于
-
- 19 3月, 2016 1 次提交
-
-
由 Ben S 提交于
This finishes off and closes #102. The code in this and the previous commit were partly authored by `zv0n` on GitHub.
-
- 18 3月, 2016 3 次提交
-
-
由 Benjamin Sago 提交于
This uses the case-insensitive sort function in the `natord` crate to convert both strings to lowercase lazily, sorting them as it goes. It also adds tests for `--sort` in general. The case sensitivity has been made an enum so it can be reused for other fields (say, the file extension). See #102.
-
由 Benjamin Sago 提交于
- Fix visibility errors I stupidly didn't test before committing earlier today - Silence warnings about casting that were necessary for ARM - Update dependencies
-
由 Ben S 提交于
-