about summary refs log tree commit diff
path: root/src/bin
AgeCommit message (Collapse)AuthorLines
2015-11-20Unwrap match arms that are simple blocksMarcus Klaas-3/+1
2015-11-19Use argv[0] for usage outputSteven Fackler-1/+1
Usage messages traditionally use this as it contains the path that the user provided to run the executable (e.g. `rustfmt` instead of `/usr/local/bin/rustfmt`).
2015-11-15Add verbose modeSeo Sanghyeon-11/+18
2015-11-13Correct some non-idiomatic codeJan Likar-6/+2
2015-11-13Enable rustfmt to format a list of filesJan Likar-14/+24
Fix #580 by allowing rustfmt to accept a list of files. This also enables usage of shell wildcard expansion, although notably this does not work with cmd.exe on Windows. For example: 'rustfmt *.rs' will format all rust files in the current working directory. - Change usage text to show rustfmt will accept a list of files - Change "Using rustfmt config file: {}" message to "Using rustfmt config file {} for {}" - Change Operation::Format(PathBuf, WriteMode) to Operation::Format(Vec<PathBuf>, WriteMode) - Loop through Vec<PathBuf>, load config and call 'run' for each path
2015-11-09Check if the CWD contains a config (previously it only checked parents)Jørn Lode-4/+5
2015-11-07Move config help to dedicated --config-help flagKamal Marhubi-1/+14
The existing help output is very verbose, overflowing a 50+ line terminal. This moves the configuration options to a separate help flag to make a mistyped command less annoying!
2015-11-05fix unused variable `path` warningMitsutaka Mimura-1/+1
2015-11-03Address review concernsJohann-17/+4
2015-11-02Stdin supportJohann-6/+42
Adds support for receiving input from stdin in case no file was specified. This is useful for editor/IDE integrations and other tooling. To achieve clean output a new write-mode option called plain was added, this option is mandatory when using stdin.
2015-10-24Print configuration options once in help messageMarcus Klaas-40/+53
2015-10-24show rustfmt coverage!Ravi Shankar-1/+1
2015-10-24Lookup rustfmt.toml file is relative from input file, not from current directorydefuz-13/+20
2015-10-23Move option parsing to crates.io-based getopts crateAlex Crichton-36/+40
Should help adding more options in the future as well!
2015-10-23Remove usage of many unstable featuresAlex Crichton-4/+3
This removes usage of: * PathExt * split_last * split_last_mut * catch_panic The catch_panic one was a little tricky as the ident interner needed to be cloned across threads (a little unsafely), but it should otherwise be good to go.
2015-10-23Use the log/env_logger crates from crates.ioAlex Crichton-0/+3
2015-09-29Refactoring configurationScyptnex-7/+1
2015-09-18Refactor test codeMarcus Klaas-2/+5
No longer use callbacks or thread::catch_panic; reduce stdout spew; guard against rustfmt breaking the column limit.
2015-09-14Changed ConfigType trait to only return a string of variants, rather than a vecAaron Lobb-8/+2
2015-09-14Merged config importsAaron Lobb-2/+1
2015-09-14Fixed https://github.com/nrc/rustfmt/issues/291; added output to --help ↵Aaron Lobb-0/+11
runtime option with possible config values
2015-09-11Break chains that don't start with path expressionsMarcus Klaas-2/+3
2015-09-10Add diff write mode https://github.com/nrc/rustfmt/issues/261Sinh Pham-1/+1
2015-09-04fix outdated help textChristoph Burgdorf-1/+1
2015-08-28Simplify match expressionMika Attila-1/+1
2015-08-28Don't pass --write-mode argument to rustcMika Attila-14/+12
Fixes regression introduced by 660f41865b43f38d68b649328c04b1702e37655e
2015-08-28Only exit after running all destructors and flushing stdoutMika Attila-18/+42
2015-08-26Fix usage of the tool. Provide -h and --helpAlex HotShot Newman-4/+22
2015-08-25Add project-specific configuration file supportSimon Bernier St-Pierre-10/+43
2015-08-19Add an option to forgo backupsMarcus Klaas-2/+26
2015-08-18Provide information about default.tomlAlex Newman-1/+3
2015-06-22RustupMarcus Klaas-23/+1
2015-05-23Use config file for constantsNick Cameron-2/+10
2015-05-12Format required methods on traitsMarcus Klaas-0/+1
2015-05-01split main function and test function into their own filesOliver Schneider-0/+42
small modifications to make executable and test compile properly