Releases: obreitwi/asfa
Releases · obreitwi/asfa
v0.7.0
v0.7.0 (2021-01-25)
push
: Add--prefix
/--suffix
.- Add a prefix (and/or suffix) to the filename stem (i.e. the part without extension).
- Useful to distinguish several autogenerated files with generic names (e.g., plots).
- Please note that dual extensions like
.tar.gz
specifying a suffix will cause it to be inserted after.tar
(i.e. the extension of afoobar.tar.gz
file is.gz
).
v0.6.1
v0.6.0
v0.6.0 (2020-12-18)
clean
/list
/verify
-commands: Add--newer
/--older
-flags- They take a duration (seconds, minutes, hours, weeks, months, years) and filter the otherwise selected files
- Supported formats:
-> tl;dr: Quantity and unit are NOT seperated by spaces - Examples:
- List all files uploaded in the last three days:
asfa list --newer 3weeks
- Clean all files older than a month:
asfa clean --older 1month
- List all files uploaded in the last three days:
clean
-command:- Make output in confirmation dialog similar to
list
-command. - Add
-d
/--details
to force displaying of file details in confirmation likelist
command.
- Make output in confirmation dialog similar to
push
-command:- Add
--limit-{mbits,kbytes}
to allow specifying a speed limit when uploading. - Add
-e
/--expire
argument- automatically deletes uploaded files after set delay
- delay syntax specified in the same manner as
--newer
/--older
argument - uses
at
at remote site to schedule deletion
- Add
v0.5.4
v0.5.4 (2020-11-15)
- Fix host-specific auth settings falling back on the default Auth-settings
instead of the global Auth-settings defined inconfig.yaml
. - Add support to obtain settings from openSSH.
- If user-supplied settings fail to authenticate against the remote server, try
using private keys listed in openSSH.- This can be toggled via a new
from_openssh
-boolean flag inauth
-section. - For now, this defaults to false - will be changed to true in next
non-bugfix release.
- This can be toggled via a new
- Ensure bulk-requested file stats are in correct order.
v0.5.3
v0.5.3 (2020-11-01)
- Rework authentication procedure to only try authentication methods that the server advertises.
- Add support for keyboard-interactive authentication if the user enables interactive input.
-> Allows for two factor authentication (e.g., with pam-based google-authenticator) - Fix host settings defined in separate file not falling back to defaults set in
config.yaml
v0.5.2
v0.5.1
v0.5.0
v0.5.0 (2020-10-22)
- Allow host selection via
$ASFA_HOST
environment variable. Priority for host selection is:-H
/--host
supplied via command line.ASFA_HOST
environment variable.default_host
from config file.- Single host if there is only one defined.
clean
-command:- Add
-F
/--filter
-option to clean files matching a given regex. - Add
-n
/--last
-switch fromlist
command to clean the lastn
files - Add
-r
/--reverse
-switch to reverse listing (useful for-n
). - Add
-S
/--sort-size
-switch to sort files by remote size (useful for-n
). - Add
-T
/--sort-time
-switch to sort selected files by modification time.
- Add
list
-command:- Add
-T
/--sort-time
-switch to sort selected files by modification time.
- Add
- Add
verify
-command with same file selection arguments asclean
/list
.
v0.4.1
v0.4.0
v0.4.0 (2020-10-14)
- Add
private_key_file
to auth-option in order to specfiy private key file directly - Add
--verbose
argument that increases loglevel - Add
--quiet
argument that decreases loglevel - Encode hash in base64 in order to make needed URL prefix shorter at same "guessability".
→ This causes the maximum prefix length to go down from 128 to 64 (4 bit per char → 8 bit per char) list
:- Add
-s
/--with-size
-switch to print file sizes. - Add
-f
/--filenames
-switch to print filenames instead of full urls in listing. - Add
-S
/--sort-size
-switch to sort selected files by remote size. - Add
-r
/--reverse
-switch to reverse listing. - Add
-F
/--filter
-option to only display filenames matching a given regex. - Add
-i
/--indices
-switch to only print indices of files.- This is useful to supply as input to the clean command for instance:
- Example:
asfa clean $(asfa list -iF "\.png$")
deletes all png.
- Add
-t
/--with-time
to print modification times.
- Add