Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8511634

Browse files
committed
deno fmt
1 parent e8bd12f commit 8511634

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff 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

fixtures/skaffold.yaml/multidoc/skaffold.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ manifests:
2929
kustomize: {}
3030

3131
profiles:
32-
- name: skaffold-fixture
32+
- name: skaffold-fixture

src/integrate.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,10 @@ export default async function (
9191
}
9292

9393
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)"';
9798

9899
const zdotdir = flatmap(Deno.env.get("ZDOTDIR"), Path.abs) ?? Path.home();
99100
const zshpair: [Path, string] = [zdotdir.join(".zshrc"), eval_ln];

src/sniff.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff 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) {

0 commit comments

Comments
 (0)