-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path.emacs-commands.xml
121 lines (76 loc) · 2.49 KB
/
.emacs-commands.xml
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
<emacs>
<command title="Start" dir="." >
<cmd>
nix-shell --run "docker-compose up"
</cmd>
</command>
<command title="Subscribe to Topic" dir="." >
<cmd>
nix-shell --run "kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic $TOPIC --from-beginning"
</cmd>
<arg name="TOPIC">
<value> pets.added </value>
<value> pets.statusChanged </value>
<value> adoptions.requested </value>
<value> adoptions.statusChanged </value>
<value> __consumer_offsets </value>
</arg>
</command>
<command title="Post to Topic" dir="." >
<cmd>
nix-shell --run "echo '{\"name\": \"$NAME\"}' | kafka-console-producer.sh --bootstrap-server localhost:9092 --topic $TOPIC"
</cmd>
<arg name="NAME" default="Fido">
</arg>
<arg name="TOPIC">
<value> pets.added </value>
<value> pets.statusChanged </value>
</arg>
</command>
<!-- <command title="Purge Topic" dir="." > -->
<!-- <cmd> -->
<!-- nix-shell -\-run "kafka-configs.sh -\-bootstrap-server localhost:9092 -\-alter -\-entity-type topics -\-entity-name $TOPIC -\-add-config retention.ms=1000 && sleep 5 && kafka-configs.sh -\-bootstrap-server localhost:9092 -\-alter -\-entity-type topics -\-entity-name $TOPIC -\-delete-config retention.ms" -->
<!-- </cmd> -->
<!-- <arg name="TOPIC"> -->
<!-- <value> pets.added </value> -->
<!-- <value> pets.statusChanged </value> -->
<!-- </arg> -->
<!-- </command> -->
<command title="Purge Topic Now" dir="." >
<cmd>
nix-shell --run "kafka-delete-records.sh --bootstrap-server localhost:9092 --offset-json-file $TOPIC_FILE"
</cmd>
<arg name="TOPIC_FILE" file-from="services/kafka/*.delete.json">
</arg>
</command>
<command title="Start web-ui" dir="./web-ui" >
<cmd>
nix-shell --run "yarn start"
</cmd>
</command>
<command title="Start Pets" dir="./pets" >
<cmd>
nix-shell --run "yarn run dev"
</cmd>
</command>
<command title="Start Adoptions" dir="./adoptions" >
<cmd>
nix-shell --run "yarn run dev"
</cmd>
</command>
<command title="Start Websocket" dir="./websocket" >
<cmd>
nix-shell --run "yarn run dev"
</cmd>
</command>
<command title="Start Gateway" dir="./gateway" >
<cmd>
nix-shell --run "make dev"
</cmd>
</command>
<command title="Stop tmuxinator" >
<cmd>
nix-shell --run "./stop.sh"
</cmd>
</command>
</emacs>