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
Refactored command new to support non-SCM operations.
Added switches:
* --program and --library to enforce behavior of "new"
* --mbedlib to enable new programs based on the mbed library (mbed Classic)
* --create-only to only create the program/library and not import mbed-os or mbed library (autmation)
* changed "scm" from positional argument to --scm switch
Also added support for "none" as option to --scm which prevents git and hg repositories to be created (plain folder programs support)
dict(name='name', help='Destination name or path'),
1268
-
dict(name='scm', nargs='?', help='Source control management. Currently supported: %s. Default: git'%', '.join([s.nameforsinscms.values()])),
1269
-
dict(name='--mbedlib', action='store_true', help='Add the mbed library to the program (instead of mbed-os).'),
1273
+
dict(name='--scm', nargs='?', help='Source control management. Currently supported: %s. Default: git'%', '.join([s.nameforsinscms.values()])),
1274
+
dict(name='--program', action='store_true', help='Force creation of an mbed program. Default: auto.'),
1275
+
dict(name='--library', action='store_true', help='Force creation of an mbed library. Default: auto.'),
1276
+
dict(name='--mbedlib', action='store_true', help='Add the mbed library instead of mbed-os into the program.'),
1277
+
dict(name='--create-only', action='store_true', help='Only create program, do not import mbed-os or mbed library.'),
1270
1278
dict(name='--depth', nargs='?', help='Number of revisions to fetch the mbed OS repository when creating new program. Default: all revisions.'),
1271
1279
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.'),
1272
-
help='Create a new program based on the specified source control management. Will create a new library when called from inside a local program. Supported SCMs: %s.'% (', '.join([s.nameforsinscms.values()])))
help='Create a new program based on the specified source control management. Will create a new library when called from inside a program. Supported SCMs: %s.'% (', '.join([s.nameforsinscms.values()])))
0 commit comments