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
staticdescription='Apply a codify file onto the system. A plan of the changes is first generated and a list of changes will be shown before proceeding'
8
+
staticdescription=
9
+
`Install or update resources on the system based on a codify.json file.
10
+
11
+
Codify first generates a plan to determine the necessary execution steps. See
12
+
${chalk.bold.bgMagenta(' codify plan --help ')} for more details.
13
+
The execution plan will be presented and approval will be asked before Codify applies
14
+
any changes.
15
+
16
+
For scripts: use ${chalk.bold.bgMagenta(' --output json ')} which will skip approval and
17
+
apply changes directly.
18
+
19
+
For more information, visit: https://docs.codifycli.com/commands/apply
20
+
`
8
21
9
22
staticflags={
10
23
'sudoPassword': Flags.string({
11
24
optional: true,
12
-
description: 'Pre-fill the sudo password to automatically use for any commands that require elevated permissions.',
25
+
description: 'Automatically use this password for any commands that require elevated permissions.',
Copy file name to clipboardExpand all lines: src/commands/import.ts
+21-10Lines changed: 21 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,4 @@
1
+
importchalkfrom'chalk';
1
2
importfsfrom'node:fs/promises';
2
3
importpathfrom'node:path';
3
4
@@ -8,24 +9,34 @@ import { ShellUtils } from '../utils/shell.js';
8
9
exportdefaultclassImportextendsBaseCommand{
9
10
staticstrict=false;
10
11
staticoverridedescription=
11
-
`Generate codify configs from already installed packages. Use a list of space separated arguments to specify the resource types to import. Leave blank to import all resource in an existing *.codify.json file.
12
+
`Generate Codify configurations from already installed packages. Use a space-separated list of
13
+
arguments to specify the resource types to import. If a codify.json file already
14
+
exists, omit arguments to update the file to match the system.
12
15
13
-
Modes:
14
-
1. No args: if no args are specified and an *.codify.json already exists. Then codify will update the existing file with any new changes to the resources specified in the file/files.
16
+
${chalk.bold('Modes:')}
17
+
1. ${chalk.bold('No args:')} If no args are specified and an *.codify.json already exists, Codify
18
+
will update the existing file with new changes on the system.
15
19
16
-
Command: codify import
20
+
${chalk.underline('Command:')}
21
+
codify import
17
22
18
-
2. With args: specify specific resources to import using arguments. Wild card matching is supported using '*' and ? (Note: in zsh * expands to the current dir and needs to be escaped using \\* or '*'). A prompt will be shown if more information is required to complete the import.
23
+
2. ${chalk.bold('With args:')} Specify specific resources to import using arguments. Wild card matching is supported
24
+
using '*' and '?' (${chalk.italic('Note: in zsh * expands to the current dir and needs to be escaped using \\* or \'*\'')}).
25
+
A prompt will be shown if more information is required to complete the import.
0 commit comments