File tree Expand file tree Collapse file tree 4 files changed +13
-13
lines changed
fixtures/skaffold.yaml/multidoc Expand file tree Collapse file tree 4 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -28,8 +28,7 @@ more shells.
28
28
29
29
> [ !NOTE]
30
30
>
31
- > ` dev integrate ` looks for and edits known ` shell.rc ` files adding one
32
- > line:
31
+ > ` dev integrate ` looks for and edits known ` shell.rc ` files adding one line:
33
32
>
34
33
> ``` sh
35
34
> eval " $( dev --shellcode) "
@@ -41,9 +40,8 @@ more shells.
41
40
> pkgx dev integrate --dry-run
42
41
> ` ` `
43
42
>
44
- > If you like, preview the shellcode: ` pkgx dev --shellcode` . This command
45
- > only outputs shellcode, it doesn’t modify any files or do anything else
46
- > either.
43
+ > If you like, preview the shellcode: ` pkgx dev --shellcode` . This command only
44
+ > outputs shellcode, it doesn’t modify any files or do anything else either.
47
45
48
46
# # Usage
49
47
Original file line number Diff line number Diff line change @@ -29,4 +29,4 @@ manifests:
29
29
kustomize : {}
30
30
31
31
profiles :
32
- - name : skaffold-fixture
32
+ - name : skaffold-fixture
Original file line number Diff line number Diff line change @@ -91,9 +91,10 @@ export default async function (
91
91
}
92
92
93
93
function shells ( ) : [ Path , string ] [ ] {
94
- const eval_ln = existsSync ( '/opt/homebrew/bin/dev' ) || existsSync ( '/usr/local/bin/dev' )
95
- ? 'eval "$(dev --shellcode)"'
96
- : 'eval "$(pkgx --quiet dev --shellcode)"' ;
94
+ const eval_ln =
95
+ existsSync ( "/opt/homebrew/bin/dev" ) || existsSync ( "/usr/local/bin/dev" )
96
+ ? 'eval "$(dev --shellcode)"'
97
+ : 'eval "$(pkgx --quiet dev --shellcode)"' ;
97
98
98
99
const zdotdir = flatmap ( Deno . env . get ( "ZDOTDIR" ) , Path . abs ) ?? Path . home ( ) ;
99
100
const zshpair : [ Path , string ] = [ zdotdir . join ( ".zshrc" ) , eval_ln ] ;
Original file line number Diff line number Diff line change @@ -260,15 +260,16 @@ export default async function (dir: Path) {
260
260
}
261
261
262
262
async function skaffold_yaml ( path : Path ) {
263
+ //deno-lint-ignore no-explicit-any
263
264
const yamls = await path . readYAMLAll ( ) as unknown as any [ ] ;
264
265
const lpkgs : PackageRequirement [ ] = [ ] ;
265
266
266
267
for ( const yaml of yamls ) {
267
268
if ( ! isPlainObject ( yaml ) ) continue ;
268
269
269
270
if (
270
- yaml . build ?. local ?. useDockerCLI ?. toString ( ) === "true" ||
271
- yaml . deploy ?. docker
271
+ yaml . build ?. local ?. useDockerCLI ?. toString ( ) === "true" ||
272
+ yaml . deploy ?. docker
272
273
) {
273
274
lpkgs . push ( {
274
275
project : "docker.com/cli" ,
@@ -308,9 +309,9 @@ export default async function (dir: Path) {
308
309
}
309
310
310
311
const deduped = Array . from (
311
- new Map ( lpkgs . map ( pkg => [ pkg . project , pkg ] ) ) . values ( )
312
+ new Map ( lpkgs . map ( ( pkg ) => [ pkg . project , pkg ] ) ) . values ( ) ,
312
313
) ;
313
- pkgs . push ( ...deduped )
314
+ pkgs . push ( ...deduped ) ;
314
315
}
315
316
316
317
async function github_actions ( path : Path ) {
You can’t perform that action at this time.
0 commit comments