You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
dict(name='--create-only', action='store_true', help='Only create a program, do not import mbed-os or mbed library.'),
1817
1828
dict(name='--depth', nargs='?', help='Number of revisions to fetch the mbed OS repository when creating new program. Default: all revisions.'),
1818
1829
dict(name='--protocol', nargs='?', help='Transport protocol when fetching the mbed OS repository when creating new program. Supported: https, http, ssh, git. Default: inferred from URL.'),
1830
+
dict(name='--offline', action='store_true', help='Offline mode will force the use of locally cached repositories and prevent requests to remote repositories.'),
1819
1831
help='Create new mbed program or library',
1820
1832
description=(
1821
1833
"Creates a new mbed program if executed within a non-program location.\n"
1822
1834
"Alternatively creates an mbed library if executed within an existing program.\n"
1823
1835
"When creating new program, the latest mbed-os release will be downloaded/added\n unless --create-only is specified.\n"
dict(name='--depth', nargs='?', help='Number of revisions to fetch from the remote repository. Default: all revisions.'),
1901
1914
dict(name='--protocol', nargs='?', help='Transport protocol for the source control management. Supported: https, http, ssh, git. Default: inferred from URL.'),
1902
1915
dict(name='--insecure', action='store_true', help='Allow insecure repository URLs. By default mbed CLI imports only "safe" URLs, e.g. based on standard ports - 80, 443 and 22. This option enables the use of arbitrary URLs/ports.'),
1916
+
dict(name='--offline', action='store_true', help='Offline mode will force the use of locally cached repositories and prevent requests to remote repositories.'),
1903
1917
hidden_aliases=['im', 'imp'],
1904
1918
help='Import program from URL',
1905
1919
description=(
1906
1920
"Imports mbed program and its dependencies from a source control based URL\n"
1907
1921
"(GitHub, Bitbucket, mbed.org) into the current directory or specified\npath.\n"
1908
1922
"Use 'mbed add <URL>' to add a library into an existing program."))
dict(name='--depth', nargs='?', help='Number of revisions to fetch from the remote repository. Default: all revisions.'),
1977
1992
dict(name='--protocol', nargs='?', help='Transport protocol for the source control management. Supported: https, http, ssh, git. Default: inferred from URL.'),
1978
1993
dict(name='--insecure', action='store_true', help='Allow insecure repository URLs. By default mbed CLI imports only "safe" URLs, e.g. based on standard ports - 80, 443 and 22. This option enables the use of arbitrary URLs/ports.'),
1994
+
dict(name='--offline', action='store_true', help='Offline mode will force the use of locally cached repositories and prevent requests to remote repositories.'),
1979
1995
hidden_aliases=['ad'],
1980
1996
help='Add library from URL',
1981
1997
description=(
1982
1998
"Adds mbed library and its dependencies from a source control based URL\n"
1983
1999
"(GitHub, Bitbucket, mbed.org) into an existing program.\n"
1984
2000
"Use 'mbed import <URL>' to import as a program"))
dict(name='--depth', nargs='?', help='Number of revisions to fetch from the remote repository. Default: all revisions.'),
2024
2041
dict(name='--protocol', nargs='?', help='Transport protocol for the source control management. Supported: https, http, ssh, git. Default: inferred from URL.'),
2025
2042
dict(name='--insecure', action='store_true', help='Allow insecure repository URLs. By default mbed CLI imports only "safe" URLs, e.g. based on standard ports - 80, 443 and 22. This option enables the use of arbitrary URLs/ports.'),
2043
+
dict(name='--offline', action='store_true', help='Offline mode will force the use of locally cached repositories and prevent requests to remote repositories.'),
2026
2044
help='Find and add missing libraries',
2027
2045
description=(
2028
2046
"Import missing dependencies in an existing program or library.\n"
2029
2047
"Use 'mbed import <URL>' and 'mbed add <URL>' instead of cloning manually and\n"
dict(name='--depth', nargs='?', help='Number of revisions to fetch from the remote repository. Default: all revisions.'),
2109
2128
dict(name='--protocol', nargs='?', help='Transport protocol for the source control management. Supported: https, http, ssh, git. Default: inferred from URL.'),
2110
2129
dict(name='--insecure', action='store_true', help='Allow insecure repository URLs. By default mbed CLI imports only "safe" URLs, e.g. based on standard ports - 80, 443 and 22. This option enables the use of arbitrary URLs/ports.'),
2130
+
dict(name='--offline', action='store_true', help='Offline mode will force the use of locally cached repositories and prevent requests to remote repositories.'),
2111
2131
dict(name=['-l', '--latest-deps'], action='store_true', help='Update all dependencies to the latest revision of their current branch. WARNING: Ignores lib files'),
2112
2132
hidden_aliases=['up'],
2113
2133
help='Update to branch, tag, revision or latest',
2114
2134
description=(
2115
2135
"Updates the current program or library and its dependencies to specified\nbranch, tag or revision.\n"
2116
2136
"Alternatively fetches from associated remote repository URL and updates to the\n"
0 commit comments