04:32 arkiuat left 05:02 arkiuat joined 05:07 arkiuat left 05:21 arkiuat joined 05:49 arkiuat left 06:01 arkiuat joined 06:06 arkiuat left 06:14 arkiuat joined
simon_sibl that would be amazing 06:25
although having Raku run on iSH would allow more control 06:26
06:26 arkiuat left 06:39 arkiuat joined 06:44 arkiuat left 07:09 arkiuat joined 07:46 arkiuat left 08:00 arkiuat joined 08:05 arkiuat left 08:32 arkiuat joined 08:37 arkiuat left 09:06 arkiuat joined 09:11 arkiuat left
SmokeMachine .tell simon_sibl on my iPhone it seems I got a different error: usercontent.irccloud-cdn.com/file/...273863.JPG 09:24
09:32 arkiuat joined 09:36 arkiuat left 10:04 arkiuat joined 10:09 arkiuat left 10:33 arkiuat joined, bolangi_ left, bolangi joined 10:38 arkiuat left 11:06 arkiuat joined 11:11 arkiuat left, sivoais_ left, sivoais joined 11:18 bolangi left 11:19 bolangi joined 11:20 arkiuat joined 11:25 arkiuat left 11:28 human-blip joined, human_blip left, ab5tract_ joined 11:35 bolangi left, bolangi joined, ab5tract left, ab5tract_ is now known as ab5tract, ab5tract left, ab5tract joined
simon_sibl Interesting Which repo did you use ? 11:38
I’m on iSH 1.3.2 (Build 494) 11:40
cdn.discordapp.com/attachments/768...badf8& 11:41
11:52 arkiuat joined
myrlynx How do I rename a file? 11:58
ab5tract myrlynx: "new".IO.spurt: "old".IO.slurp 12:42
or with :bin if not a text file 12:43
I
I'm not sure there is anything more high level than that in core
myrlynx Thank you!
Did that go through? 12:44
ab5tract I can see your response, if you mean whether your message made it through the irc bridge 12:45
myrlynx: I've often thought about what Raku based shell would look like 12:46
myrlynx Raku based shell? 12:47
ab5tract yeah, as opposed to bash/zsh/fish 12:48
kjp mrlynx: There's IO::Path::rename or just the plain rename function.
ab5tract kjp: ah! I'm glad to be wrong here 12:49
myrlynx Oh. It would be pretty nice. It's kinda messy to use shell scripts so I'm trying to do it in raku
ab5tract rename is way better than my suggestion
myrlynx Also how can I search for a file and check if it exists or not? 12:50
I'll use rename for it then. The previous one doesn't look too good
thank you kjp 12:53
kjp mrlynx: docs.raku.org/type/IO/Path#File_test_operators 12:55
myrlynx Ooooo neat! Thank you! 12:56
ab5tract raku.land/zef:lizmat/path-utils 13:05
this is a nice module from lizmat
myrlynx What's its use case? 13:06
ab5tract just simplifies some conditionals
lizmat it was created for App::Rak, and I figured it had more general applicability and thus warranted to be put into a separate module 13:07
myrlynx Does it work on other operating systems? 13:08
It says linux mac and windows 13:09
How can I take multiple arguements for cli? e.g. If I have install option and remove option. I want to take one of either options and an arguement after it 13:18
ab5tract multi sub MAIN(:$foo!) { # foo ... }; multi sub MAIN(:$bar!) { # bar ... } 14:33
or you can have a single MAIN sub and do the argument processing inline 14:34
don't forget about subsets and where clauses :) 14:37
myrlynx tysm 14:46
15:19 stanrifkin joined 15:21 librasteve_ joined 15:54 human-blip left 15:56 human-blip joined 16:05 arkiuat_ joined 16:07 avuserow_ is now known as avuserow 16:08 arkiuat left 17:36 human-blip left 17:38 human-blip joined 17:56 librasteve_ left 18:23 human-blip left 18:24 human-blip joined 18:37 bolangi left 18:38 bolangi joined 21:21 arkiuat_ left 21:33 arkiuat joined 23:17 guifa joined