Skip to content

Commit 6f0c6f3

Browse files
committed
Java, install improvements
- Add Java ecosystem - Fix some GitHub remote URL-related rules - Remove "install" command and associated code The install command was created for quick installation of personal projects. Adding shell scripts via strings was always unnatural and the "step.sh" script (part of my `~/.dotfiles`) repositories took over that role.
1 parent b1f4304 commit 6f0c6f3

File tree

13 files changed

+613
-527
lines changed

13 files changed

+613
-527
lines changed

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"window.title": "${folderName} ${separator}${activeRepositoryBranchName}${separator}${remoteName} (deno)",
2+
"window.title": "${folderName} ${separator}${activeRepositoryBranchName}${separator}${remoteName} (undefined)",
33
"files.exclude": {
44
"**/.git": true,
55
"**/.data": true,

bin/dev.ts

Lines changed: 4 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ import { Builtins, Cli, Command, Option } from 'clipanion'
33

44
import { run as runNew } from '../commands/new.ts'
55
import { run as runFix } from '../commands/lint.ts'
6-
import { cleanupTerminal, run as runInstall } from '../commands/install.ts'
6+
77
import { run as runRepos } from '../commands/repos.ts'
88
import { run as runTask } from '../commands/task.ts'
99
import { startServer } from '../devserver/webframework/webframework.ts'
10-
import process from "node:process";
10+
import process from 'node:process'
1111

1212
const version = '0.4.0' // TODO
1313

@@ -54,6 +54,7 @@ cli.register(
5454
})
5555

5656
yes = Option.Boolean('--yes')
57+
strict = Option.Boolean('--strict')
5758
match = Option.Array('match')
5859
only = Option.Array('only')
5960
exclude = Option.Array('exclude')
@@ -63,6 +64,7 @@ cli.register(
6364
await runFix(
6465
{
6566
yes: this.yes,
67+
strict: this.strict,
6668
match: this.match,
6769
only: this.only,
6870
exclude: this.exclude,
@@ -72,26 +74,7 @@ cli.register(
7274
}
7375
},
7476
)
75-
cli.register(
76-
class InstallCommand extends Command {
77-
static override paths = [[`install`]]
78-
static override usage = Command.Usage({
79-
description: `Install or update a program through the TUI`,
80-
})
81-
82-
positionals = Option.Proxy()
8377

84-
async execute() {
85-
await runInstall({}, this.positionals)
86-
}
87-
88-
override async catch(error: unknown) {
89-
globalThis.skipTerminalCleanup = true
90-
cleanupTerminal()
91-
console.error(error)
92-
}
93-
},
94-
)
9578
cli.register(
9679
class ReposCommand extends Command {
9780
static override paths = [[`repos`]]

0 commit comments

Comments
 (0)