mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-01-05 19:16:24 +01:00
fix(CLI): escape subcommand descriptions
Otherwise, we could have had invalid rust strings. [skip ci]
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
if isinstance(v, bool):
|
||||
v = v and 'true' or 'false'
|
||||
elif isinstance(v, basestring):
|
||||
v = '"%s"' % v
|
||||
v = '"%s"' % v.replace('"', r'\"')
|
||||
elif isinstance(v, list):
|
||||
v = 'vec![%s]' % ','.join('UploadProtocol::%s' % p.capitalize() for p in v)
|
||||
return 'Some(%s)' % v
|
||||
|
||||
Reference in New Issue
Block a user