File tree Expand file tree Collapse file tree 3 files changed +25
-3
lines changed Expand file tree Collapse file tree 3 files changed +25
-3
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ ARG deps="\
9
9
libxcb-keysyms1 \
10
10
libxcb-shape0 \
11
11
libxkbcommon-x11-0 \
12
+ libusb-1.0-0 \
13
+ usbutils \
12
14
"
13
15
RUN apt-get update \
14
16
&& apt-get install -y ${deps} \
Original file line number Diff line number Diff line change 43
43
" -e" ,
44
44
" XAUTHORITY=/tmp/.Xauthority" ,
45
45
" -v" ,
46
- " ${localEnv:HOME}/.Xauthority:/tmp/.Xauthority"
46
+ " ${localEnv:HOME}/.Xauthority:/tmp/.Xauthority" ,
47
+ // Share USB devices to container (https://binary-manu.github.io/binary-is-better/docker/access-usb-devices-from-unprivileged-docker-containers)
48
+ " -v" ,
49
+ " /dev/bus/usb:/dev/bus/usb" ,
50
+ " --device-cgroup-rule" ,
51
+ " c 189:* rw"
47
52
],
48
53
"features" : {
49
54
"ghcr.io/devcontainers/features/github-cli:1" : {}
Original file line number Diff line number Diff line change 5
5
"version" : " 0.2.0" ,
6
6
"configurations" : [
7
7
{
8
- "name" : " CLI" ,
8
+ "name" : " CLI (Console preview) " ,
9
9
"type" : " debugpy" ,
10
10
"request" : " launch" ,
11
11
"module" : " labelle.cli.cli" ,
12
12
"args" : [
13
- " --preview" ,
13
+ " --output=console" ,
14
+ " --verbose" ,
15
+ " --tape-size-mm=12" ,
16
+ " hi" ,
17
+ ],
18
+ "justMyCode" : false ,
19
+ },
20
+ {
21
+ "name" : " CLI (Printer)" ,
22
+ "type" : " debugpy" ,
23
+ "request" : " launch" ,
24
+ "module" : " labelle.cli.cli" ,
25
+ "args" : [
26
+ " --output=printer" ,
27
+ " --verbose" ,
28
+ " --tape-size-mm=12" ,
14
29
" hi" ,
15
30
],
16
31
"justMyCode" : false ,
You can’t perform that action at this time.
0 commit comments