@kaynooo/cli-proc 0.5.0 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@kaynooo/cli-proc",
3
3
  "type": "module",
4
- "version": "0.5.0",
4
+ "version": "0.7.0",
5
5
  "description": "pid, ports, procs: one process inspected, who listens on a port, and leftover or heavy dev processes cleaned, read straight from /proc (Linux).",
6
6
  "author": "Kaynooo <contact@kaynooo.fr>",
7
7
  "license": "MIT",
@@ -35,6 +35,6 @@
35
35
  "procs": "$npm_execpath src/procs-cli.ts"
36
36
  },
37
37
  "devDependencies": {
38
- "@kaynooo/cli-kit": "0.28.0"
38
+ "@kaynooo/cli-kit": "0.36.0"
39
39
  }
40
40
  }
package/src/pid-cli.ts CHANGED
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env -S bun --no-env-file
1
+ #!/usr/bin/env -S bun --no-env-file --config=/dev/null
2
2
 
3
3
  import process from 'node:process'
4
4
  import { runMain } from '@kaynooo/cli-kit'
package/src/ports-cli.ts CHANGED
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env -S bun --no-env-file
1
+ #!/usr/bin/env -S bun --no-env-file --config=/dev/null
2
2
 
3
3
  import process from 'node:process'
4
4
  import { runMain } from '@kaynooo/cli-kit'
package/src/ports.ts CHANGED
@@ -2,7 +2,7 @@ import type { Container, Protocol, Socket } from './parse'
2
2
  import type { ProcInfo } from './read'
3
3
  import { basename } from 'node:path'
4
4
  import process from 'node:process'
5
- import { badUsage, duration, fail, jsonOption, paint, parse, printHeader, printJson, table, truncate, watching, watchOption, wholeNumber, withoutWatch } from '@kaynooo/cli-kit'
5
+ import { badUsage, duration, fail, jsonOption, paint, parse, printJson, table, truncate, watching, watchOption, wholeNumber, withoutWatch } from '@kaynooo/cli-kit'
6
6
  import { confirm } from '@kaynooo/cli-kit/prompt'
7
7
  import { dockerContainers } from './docker'
8
8
  import { protectionOf, terminate } from './kill'
@@ -189,7 +189,6 @@ export async function ports(args: string[]): Promise<number> {
189
189
  return 0
190
190
  }
191
191
 
192
- printHeader('ports')
193
192
  console.log(render(rows))
194
193
 
195
194
  const unknown = rows.filter(row => row.pid === undefined && row.container === undefined).length
package/src/proc-cli.ts CHANGED
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env -S bun --no-env-file
1
+ #!/usr/bin/env -S bun --no-env-file --config=/dev/null
2
2
 
3
3
  import process from 'node:process'
4
4
  import { runCli } from '@kaynooo/cli-kit'
package/src/procs-cli.ts CHANGED
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env -S bun --no-env-file
1
+ #!/usr/bin/env -S bun --no-env-file --config=/dev/null
2
2
 
3
3
  import process from 'node:process'
4
4
  import { runMain } from '@kaynooo/cli-kit'
package/src/procs.ts CHANGED
@@ -2,7 +2,7 @@ import type { Group } from './select'
2
2
  import { existsSync } from 'node:fs'
3
3
  import { homedir } from 'node:os'
4
4
  import process from 'node:process'
5
- import { duration, fail, formatFileSize, formatSeconds, jsonOption, paint, parse, parseSize, printHeader, printJson, table, truncate, watching, watchOption, withoutWatch } from '@kaynooo/cli-kit'
5
+ import { duration, fail, formatFileSize, formatSeconds, jsonOption, paint, parse, parseSize, printJson, table, truncate, watching, watchOption, withoutWatch } from '@kaynooo/cli-kit'
6
6
  import { terminate } from './kill'
7
7
  import { maskArgs } from './mask'
8
8
  import { ancestry, snapshot } from './read'
@@ -89,7 +89,6 @@ export async function procs(args: string[]): Promise<number> {
89
89
  printJson({ groups: groups.map(summary), skipped: protectedCount, ...extra })
90
90
  }
91
91
  else {
92
- printHeader('procs')
93
92
  console.log(groups.length === 0 ? 'nothing to clean' : render(groups))
94
93
  }
95
94
  }