37 Commits

Author SHA1 Message Date
Cole Mickens
d32827b103 live feedback on terminal size 2016-07-13 11:57:19 +02:00
Michael Neumann
f0e5f812ba Fix build for DragonFly 2016-05-20 15:52:09 +02:00
Alexey Alekhin
7b5223f5c1 Changed max-wait parameter type to float64 2016-05-15 20:18:00 +02:00
Marcin Kulik
13a8653ce4 Fix spinner 2016-02-21 18:22:37 +01:00
Marcin Kulik
259f858d4f Spinner 2016-02-21 16:58:39 +01:00
Marcin Kulik
c3ba15ba56 Add --quiet option to rec command (closes #122) 2015-08-08 21:29:29 +02:00
Marcin Kulik
1e2ddf018c Accept LC_CTYPE without country/language codes (fixes #103) 2015-05-25 18:34:56 +02:00
Marcin Kulik
7a5e25e846 Look for $XDG_CONFIG_HOME/asciinema/config instead of $XDG_CONFIG_HOME/.asciinema/config 2015-05-23 18:30:43 +02:00
Zhiming Wang
fd38b0f453 check a list of locations for the config file
* First, check the following locations in order (skip if the
  corresponding environment variable is undefined or empty):

  * `$ASCIINEMA_CONFIG_HOME/config`
  * `$XDG_CONFIG_HOME/asciinema/config`
  * `$HOME/.config/asciinema/config`
  * `$HOME/.asciinema/config`

  Use the first one that is found.

* If not found, create a new config file at the first location listed
  above whose corresponding environment variable is nonempty; i.e.,

  * Use `$ASCIINEMA_CONFIG_HOME/config` if `ASCIINEMA_CONFIG_HOME` is
    nonempty;
  * Next, use `$XDG_CONFIG_HOME/asciinema/config` if `XDG_CONFIG_HOME`
  is nonempty;
  * Finally, use `$HOME/.config/asciinema/config` if `HOME` is nonempty.

* If none of the above works, exit with error `"Need $HOME"`.
2015-05-23 04:28:18 -07:00
Marcin Kulik
07d70371ed Rename config section from [playback] to [play] 2015-05-10 13:50:43 +02:00
Yann Ramin
a822f0f46a gofmt 2015-05-06 07:48:57 -07:00
Yann Ramin
56133eb33a New config option, check for default value 2015-05-06 07:48:27 -07:00
Marcin Kulik
b09b82ea6e Use build tags to not repeat the same code 2015-04-24 13:17:01 +02:00
Bob Krzaczek
c3e7b6bdff Add support for FreeBSD 2015-04-24 13:12:15 +02:00
Jakub Jedelsky
0dc492e30a UTF locale can be specified with utf8 too. 2015-03-23 15:43:23 +01:00
Marcin Kulik
1ef9b16d3d Refactor config loading 2015-03-12 12:50:28 +01:00
Marcin Kulik
7243568f4f Separate config file representation from configuration 2015-03-12 12:23:29 +01:00
Marcin Kulik
fa3b4cd8fa Access process env only from entrypoint 2015-03-11 12:07:26 +01:00
Marcin Kulik
48571326e9 Allow setting -w and -y in config file 2015-03-09 16:44:15 +01:00
Marcin Kulik
ce34fede05 Support old location of API token in config file 2015-03-08 11:51:30 +01:00
Marcin Kulik
a26f4009e1 This "else" clause is redundant 2015-03-06 11:52:30 +01:00
Marcin Kulik
ce25392503 Simplify charset detection 2015-03-05 16:40:52 +01:00
Marcin Kulik
d095e808b0 Simplify config loading wrt API URL 2015-03-05 16:30:55 +01:00
Marcin Kulik
2578e5b5ed Update paths due to repo renaming 2015-03-05 15:57:12 +01:00
Marcin Kulik
5821a4c4bb Vendor all deps 2015-03-03 13:00:17 +01:00
Marcin Kulik
6258749b02 Fix IsUtf8Locale 2015-02-07 14:03:59 +01:00
Marcin Kulik
6a2821ae20 Require UTF-8 native locale 2015-01-26 21:33:22 +01:00
Marcin Kulik
8cd1390863 Support linux/arm 2014-12-16 12:43:29 +01:00
Marcin Kulik
a6bd4b5942 Remove debugging print 2014-12-14 13:00:49 +01:00
Marcin Kulik
41d1d71ab6 Implement golint suggestions 2014-11-15 13:33:20 +01:00
Marcin Kulik
b872658550 No need for ConfigLoader interface 2014-11-13 20:46:00 +01:00
Marcin Kulik
028d360a1d Stop copying stdin after process exits 2014-11-13 20:45:59 +01:00
Marcin Kulik
51e989ec0a Create ~/.asciinema dir before writing config file 2014-11-13 20:45:59 +01:00
Marcin Kulik
63a276bb42 Don't rely on user.Current - it fails on cross compiled binaries 2014-11-13 20:45:59 +01:00
Marcin Kulik
834f747ebd Extract line reading into util func 2014-11-13 20:45:59 +01:00
Marcin Kulik
65da964159 Add colored printing utils 2014-11-13 20:45:05 +01:00
Marcin Kulik
16bb6fb016 Add CLI runner 2014-11-13 20:45:05 +01:00