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.
2828
2929> [ !NOTE]
3030>
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:
3332>
3433> ``` sh
3534> eval " $( dev --shellcode) "
@@ -41,9 +40,8 @@ more shells.
4140> pkgx dev integrate --dry-run
4241> ` ` `
4342>
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.
4745
4846# # Usage
4947
Original file line number Diff line number Diff line change @@ -29,4 +29,4 @@ manifests:
2929 kustomize : {}
3030
3131profiles :
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 (
9191}
9292
9393function 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)"' ;
9798
9899 const zdotdir = flatmap ( Deno . env . get ( "ZDOTDIR" ) , Path . abs ) ?? Path . home ( ) ;
99100 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) {
260260 }
261261
262262 async function skaffold_yaml ( path : Path ) {
263+ //deno-lint-ignore no-explicit-any
263264 const yamls = await path . readYAMLAll ( ) as unknown as any [ ] ;
264265 const lpkgs : PackageRequirement [ ] = [ ] ;
265266
266267 for ( const yaml of yamls ) {
267268 if ( ! isPlainObject ( yaml ) ) continue ;
268269
269270 if (
270- yaml . build ?. local ?. useDockerCLI ?. toString ( ) === "true" ||
271- yaml . deploy ?. docker
271+ yaml . build ?. local ?. useDockerCLI ?. toString ( ) === "true" ||
272+ yaml . deploy ?. docker
272273 ) {
273274 lpkgs . push ( {
274275 project : "docker.com/cli" ,
@@ -308,9 +309,9 @@ export default async function (dir: Path) {
308309 }
309310
310311 const deduped = Array . from (
311- new Map ( lpkgs . map ( pkg => [ pkg . project , pkg ] ) ) . values ( )
312+ new Map ( lpkgs . map ( ( pkg ) => [ pkg . project , pkg ] ) ) . values ( ) ,
312313 ) ;
313- pkgs . push ( ...deduped )
314+ pkgs . push ( ...deduped ) ;
314315 }
315316
316317 async function github_actions ( path : Path ) {
You can’t perform that action at this time.
0 commit comments