-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpasc.lpr
More file actions
52 lines (44 loc) · 1.18 KB
/
Copy pathpasc.lpr
File metadata and controls
52 lines (44 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
program pasc;
{$MODE DELPHI}{$H+}
uses
{$IFDEF UNIX}
cmem,
cthreads,
{$ENDIF}
Command.Interfaces,
Command.App,
Command.Add,
Command.Build,
Command.Clean,
Command.Colors,
Command.Install,
Command.New,
Command.Test,
Command.Usage,
Command.Version,
Command.Watch;
var
PascApp: TCommandApp;
{$R *.res}
begin
PascApp := TCommandApp.Create(nil);
try
PascApp.Title := 'Object pascal CLI tool for use with vscode.';
PascApp.CommandBuilder.UseShortDescriptions := True;
DarkColorTheme.Title := LightBlue;
PascApp.CommandBuilder.ColorTheme := DarkColorTheme;
Command.Add.Registry(PascApp.CommandBuilder);
Command.Build.Registry(PascApp.CommandBuilder);
Command.Clean.Registry(PascApp.CommandBuilder);
Command.Usage.Registry(PascApp.CommandBuilder);
Command.Install.Registry(PascApp.CommandBuilder);
Command.New.Registry(PascApp.CommandBuilder);
Command.Test.Registry(PascApp.CommandBuilder);
Command.Version.Registry(PascApp.CommandBuilder);
Command.Watch.Registry(PascApp.CommandBuilder);
PascApp.CommandBuilder.AddArgument('project file name', acOptional);
PascApp.Run;
finally
PascApp.Free;
end;
end.