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
'container-data-folder': {type: 'string',description: 'Container data folder where user data inside the container will be stored.'},
105
105
'container-system-data-folder': {type: 'string',description: 'Container system data folder where system data inside the container will be stored.'},
106
-
'workspace-folder': {type: 'string',description: 'Workspace folder path. The devcontainer.json will be looked up relative to this path.'},
106
+
'workspace-folder': {type: 'string',description: 'Workspace folder path. The devcontainer.json will be looked up relative to this path. If --id-label, --override-config, and --workspace-folder are not provided, this defaults to the current directory.'},
107
107
'workspace-mount-consistency': {choices: ['consistent'as'consistent','cached'as'cached','delegated'as'delegated'],default: 'cached'as'cached',description: 'Workspace mount consistency.'},
108
108
'gpu-availability': {choices: ['all'as'all','detect'as'detect','none'as'none'],default: 'detect'as'detect',description: 'Availability of GPUs in case the dev container requires any. `all` expects a GPU to be available.'},
109
109
'mount-workspace-git-root': {type: 'boolean',default: true,description: 'Mount the workspace using its Git root.'},
@@ -149,11 +149,9 @@ function provisionOptions(y: Argv) {
'workspace-folder': {type: 'string',required: true,description: 'Workspace folder path. The devcontainer.json will be looked up relative to this path.'},
512
+
'workspace-folder': {type: 'string',description: 'Workspace folder path. The devcontainer.json will be looked up relative to this path. If not provided, defaults to the current directory.'},
515
513
'config': {type: 'string',description: 'devcontainer.json path. The default is to use .devcontainer/devcontainer.json or, if that does not exist, .devcontainer.json in the workspace folder.'},
'container-data-folder': {type: 'string',description: 'Container data folder where user data inside the container will be stored.'},
759
757
'container-system-data-folder': {type: 'string',description: 'Container system data folder where system data inside the container will be stored.'},
760
-
'workspace-folder': {type: 'string',description: 'Workspace folder path.The devcontainer.json will be looked up relative to this path.'},
758
+
'workspace-folder': {type: 'string',description: 'Workspace folder path.The devcontainer.json will be looked up relative to this path. If --container-id, --id-label, and --workspace-folder are not provided, this defaults to the current directory.'},
761
759
'mount-workspace-git-root': {type: 'boolean',default: true,description: 'Mount the workspace using its Git root.'},
762
760
'mount-git-worktree-common-dir': {type: 'boolean',default: false,description: 'Mount the Git worktree common dir for Git operations to work in the container. This requires the worktree to be created with relative paths (`git worktree add --relative-paths`).'},
763
761
'container-id': {type: 'string',description: 'Id of the container to run the user commands for.'},
@@ -791,7 +789,7 @@ function runUserCommandsOptions(y: Argv) {
791
789
thrownewError('Unmatched argument format: remote-env must match <name>=<value>');
'workspace-folder': {type: 'string',description: 'Workspace folder path. The devcontainer.json will be looked up relative to this path.'},
963
+
'workspace-folder': {type: 'string',description: 'Workspace folder path. The devcontainer.json will be looked up relative to this path. If --container-id, --id-label, and --workspace-folder are not provided, this defaults to the current directory.'},
966
964
'mount-workspace-git-root': {type: 'boolean',default: true,description: 'Mount the workspace using its Git root.'},
967
965
'mount-git-worktree-common-dir': {type: 'boolean',default: false,description: 'Mount the Git worktree common dir for Git operations to work in the container. This requires the worktree to be created with relative paths (`git worktree add --relative-paths`).'},
968
966
'container-id': {type: 'string',description: 'Id of the container to run the user commands for.'},
@@ -984,7 +982,7 @@ function readConfigurationOptions(y: Argv) {
984
982
thrownewError('Unmatched argument format: id-label must match <name>=<value>');
thrownewError('Missing required argument: One of --container-id, --id-label or --workspace-folder is required.');
985
+
argv['workspace-folder']=process.cwd();
988
986
}
989
987
returntrue;
990
988
});
@@ -1117,7 +1115,7 @@ async function readConfiguration({
1117
1115
functionoutdatedOptions(y: Argv){
1118
1116
returny.options({
1119
1117
'user-data-folder': {type: 'string',description: 'Host path to a directory that is intended to be persisted and share state between sessions.'},
1120
-
'workspace-folder': {type: 'string',required: true,description: 'Workspace folder path. The devcontainer.json will be looked up relative to this path.'},
1118
+
'workspace-folder': {type: 'string',description: 'Workspace folder path. The devcontainer.json will be looked up relative to this path. If --workspace-folder is not provided, defaults to the current directory.'},
1121
1119
'config': {type: 'string',description: 'devcontainer.json path. The default is to use .devcontainer/devcontainer.json or, if that does not exist, .devcontainer.json in the workspace folder.'},
'log-level': {choices: ['info'as'info','debug'as'debug','trace'as'trace'],default: 'info'as'info',description: 'Log level for the --terminal-log-file. When set to trace, the log level for --log-file will also be set to trace.'},
'container-data-folder': {type: 'string',description: 'Container data folder where user data inside the container will be stored.'},
1221
1219
'container-system-data-folder': {type: 'string',description: 'Container system data folder where system data inside the container will be stored.'},
1222
-
'workspace-folder': {type: 'string',description: 'Workspace folder path. The devcontainer.json will be looked up relative to this path.'},
1220
+
'workspace-folder': {type: 'string',description: 'Workspace folder path. The devcontainer.json will be looked up relative to this path. If --container-id, --id-label, and --workspace-folder are not provided, this defaults to the current directory.'},
1223
1221
'mount-workspace-git-root': {type: 'boolean',default: true,description: 'Mount the workspace using its Git root.'},
1224
1222
'mount-git-worktree-common-dir': {type: 'boolean',default: false,description: 'Mount the Git worktree common dir for Git operations to work in the container. This requires the worktree to be created with relative paths (`git worktree add --relative-paths`).'},
1225
1223
'container-id': {type: 'string',description: 'Id of the container to run the user commands for.'},
@@ -1254,7 +1252,7 @@ function execOptions(y: Argv) {
1254
1252
thrownewError('Unmatched argument format: remote-env must match <name>=<value>');
'workspace-folder': {type: 'string',description: 'Workspace folder to use for the configuration.',demandOption: true},
33
+
'workspace-folder': {type: 'string',description: 'Workspace folder to use for the configuration. If --workspace-folder is not provided, this defaults to the current directory'},
34
34
});
35
35
}
36
36
@@ -41,7 +41,7 @@ export function featuresResolveDependenciesHandler(args: featuresResolveDependen
'workspace-folder': {type: 'string',alias: 'w',description: 'Target workspace folder to apply Template. If --workspace-folder is not provided, this defaults to the current directory'},
14
15
'template-id': {type: 'string',alias: 't',demandOption: true,description: 'Reference to a Template in a supported OCI registry'},
15
16
'template-args': {type: 'string',alias: 'a',default: '{}',description: 'Arguments to replace within the provided Template, provided as JSON'},
16
17
'features': {type: 'string',alias: 'f',default: '[]',description: 'Features to add to the provided Template, provided as JSON.'},
@@ -30,7 +31,7 @@ export function templateApplyHandler(args: TemplateApplyArgs) {
'workspace-folder': {type: 'string',description: 'Workspace folder. If --workspace-folder is not provided defaults to the current directory.'},
27
27
'docker-path': {type: 'string',description: 'Path to docker executable.',default: 'docker'},
28
28
'docker-compose-path': {type: 'string',description: 'Path to docker-compose executable.',default: 'docker-compose'},
29
29
'config': {type: 'string',description: 'devcontainer.json path. The default is to use .devcontainer/devcontainer.json or, if that does not exist, .devcontainer.json in the workspace folder.'},
@@ -37,7 +37,6 @@ export function featuresUpgradeOptions(y: Argv) {
0 commit comments