1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-25 09:19:31 +00:00
borg/docs
Thomas Waldmann b2dedee3c8 refactor yes(), cleanup env var semantics, fixes #355
refactorings:

- introduced concept of default answer:

if the answer string is in the defaultish sequence, the return value of yes() will be the default.
e.g. if just pressing <enter> when asked on the console or if an empty string or "default" is
in the environment variable for overriding.

if an environment var has an invalid value and no retries are enabled: return default
if retries are enabled, next retry won't use the env var again, but either ask via input().

- simplify:

only one default - this should be a SAFE default as it is used in some special conditions
like EOF or invalid input with retries disallowed.

no isatty() magic, the "yes" shell command exists, so we could receive input even if it is not from a tty.

- clean:

separate retry flag from retry_msg
2016-01-24 16:04:00 +01:00
..
_static ran build_api and build_usage 2015-12-13 15:47:03 +01:00
borg_theme/css rtd theme adjustment: borg darkness for the upper left corner 2015-11-20 18:51:11 +01:00
misc change the builtin default for --chunker-params, create 2MiB chunks, fixes #343 2016-01-24 15:44:09 +01:00
usage ran setup.py build_usage 2016-01-23 20:54:20 +01:00
api.rst ran setup.py build_api 2016-01-23 20:52:04 +01:00
authors.rst move authors to a stub, include LICENSE 2015-10-07 18:33:31 -04:00
changes.rst add chunks.archive.d trick to FAQ 2016-01-23 22:57:26 +01:00
conf.py sphinx configuration: fix to create a simple man page from usage docs 2016-01-13 01:20:32 +01:00
deployment.rst Added no-agent-forwarding,no-user-rc to SSH key options. 2016-01-18 18:39:11 +01:00
development.rst docs: require python 3.4+ 2016-01-24 14:57:48 +01:00
faq.rst docs: require python 3.4+ 2016-01-24 14:57:48 +01:00
global.rst.inc Use HTTPS everywhere. Especially when the website already redirects to HTTPS. 2016-01-17 22:31:08 +01:00
index.rst docs/deployment: Add borg storage server setup example 2016-01-13 21:06:03 +01:00
installation.rst docs: require python 3.4+ 2016-01-24 14:57:48 +01:00
internals.rst change the builtin default for --chunker-params, create 2MiB chunks, fixes #343 2016-01-24 15:44:09 +01:00
Makefile fix homepage URL in all remaining places 2015-10-09 15:54:04 -04:00
quickstart.rst change encryption to be on by default (repokey mode) 2016-01-24 15:44:09 +01:00
resources.rst add gource video to resources docs, fixes #507 2016-01-15 10:34:05 +01:00
support.rst rephrase the mailing list section 2015-12-13 15:59:33 -05:00
usage.rst refactor yes(), cleanup env var semantics, fixes #355 2016-01-24 16:04:00 +01:00