1
0
mirror of https://github.com/rclone/rclone.git synced 2025-06-30 22:23:52 +02:00

authorize: add support for custom templates

This adds support for providing custom Go templates for use in the
`rclone authorize` command.

Fixes #6741
This commit is contained in:
Hunter Wittenborn
2023-02-24 09:08:38 -06:00
committed by GitHub
parent 745c0af571
commit 56b582cdb9
7 changed files with 54 additions and 10 deletions

View File

@ -77,7 +77,7 @@ func unusedDrive(t *testing.T) string {
return string(letter) + ":"
}
func checkMkdirAll(t *testing.T, path string, valid bool, errormsgs... string) {
func checkMkdirAll(t *testing.T, path string, valid bool, errormsgs ...string) {
if valid {
assert.NoError(t, MkdirAll(path, 0777))
} else {
@ -93,7 +93,7 @@ func checkMkdirAll(t *testing.T, path string, valid bool, errormsgs... string) {
}
}
func checkMkdirAllSubdirs(t *testing.T, path string, valid bool, errormsgs... string) {
func checkMkdirAllSubdirs(t *testing.T, path string, valid bool, errormsgs ...string) {
checkMkdirAll(t, path, valid, errormsgs...)
checkMkdirAll(t, path+`\`, valid, errormsgs...)
checkMkdirAll(t, path+`\parent`, valid, errormsgs...)