5 Aug 2019 |
swedneck:permaweb.io | maybe just add a line to the readme explaining where the files users are interested in are | 19:37:41 |
@darnir:talk.go7box.xyz | I plan to provide an install target for make soon. Allowing you to install the scripts into /usr/bin or similar | 19:37:50 |
@darnir:talk.go7box.xyz | I shall! Thanks for the input. | 19:38:08 |
swedneck:permaweb.io | another bit of input: a script that wraps around curl to let you call the matrix API easily would be nice | 19:38:54 |
@darnir:talk.go7box.xyz | In reply to @darnir:talk.go7box.xyz I plan to provide an install target for make soon. Allowing you to install the scripts into /usr/bin or similar This just needs some refactoring to account for the location of sourced scripts. | 19:38:59 |
@darnir:talk.go7box.xyz | In reply to @swedneck:permaweb.io another bit of input: a script that wraps around curl to let you call the matrix API easily would be nice That's exactly what this does? | 19:39:17 |
swedneck:permaweb.io | i mean a general script | 19:39:23 |
@darnir:talk.go7box.xyz | To call which API? | 19:39:33 |
swedneck:permaweb.io | not specifically for logging in etc | 19:39:38 |
swedneck:permaweb.io | i guess the other option is to have specific scripts for each API call | 19:41:00 |
@darnir:talk.go7box.xyz | I don't follow. You want a script that does what exactly? | 19:41:23 |
@darnir:talk.go7box.xyz | The scripts I'm trying to provide make it easy to do common things. It's not necessarily a 1:1 mapping to the API | 19:41:54 |
swedneck:permaweb.io | well the server-server api is definitely not needed :P | 19:42:15 |
@darnir:talk.go7box.xyz | And it's not implemented either | 19:42:26 |
AppAraat | darnir: on its way (actually already in my repo) just need to read up on some things before the actual MR | 21:33:24 |
@darnir:talk.go7box.xyz | (y) | 21:53:53 |
AppAraat | done | 23:52:15 |
Gitlab Notifications | [Darshit Shah/Matrix Shell Suite] AppAraat opened merge request Removed "set -o pipefail" (!5) | 23:20:12 |
6 Aug 2019 |
AppAraat | man, Gitlab is lacking some features IMO. First I can't see all of the MRs I started, and when I get a comment on a MR that I started, I only get an e-mail notification and no mention of it in the web UI. | 22:58:24 |
AppAraat | oh wait I just had to filter on me as author: https://gitlab.com/dashboard/merge_requests?scope=all&utf8=%E2%9C%93&state=all&author_username=AppA | 23:05:15 |
AppAraat | darnir: btw (and I know this is probably a pipe dream of mine), but what do you think about me attempting to replace dependency on jq ? | 23:10:26 |
@darnir:talk.go7box.xyz | Sure. How would you approach it though? | 23:15:12 |
@darnir:talk.go7box.xyz | I wanted the scripts to be purely POSIX. But had to settle for jq as a dependency. | 23:15:32 |
@darnir:talk.go7box.xyz | Parsing json is quite hard. You can do it with sed and awk. But it's difficult, unmaintainable and error prone | 23:16:57 |
AppAraat | yeah I was thinking sed & awk , since they're already present on most (all?) POSIX systems. However, doing that would indeed certainly not be easy. Perhaps add sed & awk as a fallback if jq is not found? | 23:40:23 |
10 Aug 2019 |
errhammr moved to a different home server | Als Antwort auf @AppAraat:matrix.org yeah I was thinking sed & awk , since they're already present on most (all?) POSIX systems. However, doing that would indeed certainly not be easy. Perhaps add sed & awk as a fallback if jq is not found? You mean, write a jq.sh script that does what jq does but in plain POSIX? | 11:32:55 |
AppAraat | Or just replace singular instances of jq with custom sed & awk lines. There are not many places now where jq is used but maybe it might grow in the future. | 11:47:07 |
@darnir:talk.go7box.xyz | More complex and interesting uses of jq are possible. And maybe we should use it. | 11:48:04 |
@darnir:talk.go7box.xyz | Provide better output to the user | 11:48:34 |
AppAraat | that might depend perhaps, is MSS supposed to be used interactively, or is it strictly to be used in automated fashion (like I'm going to do by sending transactional messages from my server, replacing e-mail alerts and the like) | 11:51:40 |