-
Notifications
You must be signed in to change notification settings - Fork 42
Expand file tree
/
Copy pathfonts
More file actions
executable file
·42 lines (28 loc) · 871 Bytes
/
fonts
File metadata and controls
executable file
·42 lines (28 loc) · 871 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/usr/bin/env python3
# Copyright 2020 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Download web fonts to bundle with nassh. See ../docs/fonts.md"""
import sys
import nassh # pylint: disable=wrong-import-order
import libdot
# The nassh fonts path.
FONTS_DIR = nassh.DIR / "fonts"
def fonts_update():
"""Download & update our copy of fonts."""
libdot.download_tarball_manifest(
nassh.DIR / "fetch.json",
"fonts",
FONTS_DIR,
)
def get_parser():
"""Get a command line parser."""
parser = libdot.ArgumentParser(description=__doc__)
return parser
def main(argv):
"""The main func!"""
parser = get_parser()
_opts = parser.parse_args(argv)
fonts_update()
if __name__ == "__main__":
sys.exit(main(sys.argv[1:]))