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:
committed by
GitHub
parent
745c0af571
commit
56b582cdb9
@ -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...)
|
||||
|
Reference in New Issue
Block a user