https://kotlinlang.org logo
Join Slack
Powered by
# kash_shell
  • c

    cedric

    08/05/2019, 3:48 PM
    Ah I see
  • c

    cedric

    08/05/2019, 3:48 PM
    Yeah that would be useful indeed, so now I understand your line above
  • c

    cedric

    08/05/2019, 3:49 PM
    Basically "Only load
    mvnDebug
    if the user types `mvn`"
  • c

    cedric

    08/05/2019, 3:49 PM
    but once it's loaded, I guess it's loaded
  • c

    cedric

    08/05/2019, 3:49 PM
    Could imagine a cache of these where a tab completion extension gets unloaded if it doesn't get used it a while
  • c

    cedric

    08/05/2019, 3:50 PM
    I'm looking at Ammonite, and Li took a different approach where everything in his shell is Scala code. Which leads to pretty arcane syntax in my opinion (e.g.
    ls! 'target/'test
    )
  • y

    yschimke

    08/05/2019, 3:51 PM
    I wrote something like this for groovy (groosh, back in 2004). I think I made same mistake. typing everything as valid groovy code was a bit awkward.
  • y

    yschimke

    08/05/2019, 3:52 PM
    it never caught on.
  • y

    yschimke

    08/05/2019, 3:52 PM
    But kash looks a lot nicer.
  • c

    cedric

    08/05/2019, 3:53 PM
    I think so, finding the right compromise of launching processes and running kotlin code
  • d

    darkmoon_uk

    08/05/2019, 10:23 PM
    ...at least one audience member here who's furiously *F5*'ing Kash on Homebrew ๐Ÿ™‚ ๐Ÿบ
  • c

    cedric

    08/05/2019, 10:26 PM
    It's a bit painful but I'm making progress with the Homebrew people
    ๐Ÿ‘ 1
  • m

    mikehearn

    08/06/2019, 9:54 AM
    where does the pain come from?
  • c

    cedric

    08/06/2019, 12:53 PM
    I submitted a formula that passes both the tests and the audit but there were still things breaking and not caught by these two things (namely, require Java 11, which I already did, but I needed to add the check in a second place)
  • c

    cedric

    08/06/2019, 12:54 PM
    Also, their sandbox seems to only have Java 8 so they can't really test it, and no existing formula seems to require Java 11 yet, Kash is the first.
  • m

    mikehearn

    08/07/2019, 1:24 PM
    I see
  • c

    christiangruber

    08/12/2019, 1:38 AM
    Are you able to publish your own cask or tap or whatever, so it's installable indirectly? Or does that much end up requiring buyin from the homebrew folks anyway?
    y
    • 2
    • 1
  • c

    cedric

    08/12/2019, 4:46 AM
    @christiangruber Homebrew install is almost ready, the PR is taking a while, sadly
    ๐Ÿ‘ 4
    K 1
    ๐Ÿ’ช 1
    ๐Ÿ’ฐ 1
  • c

    cedric

    08/12/2019, 4:47 AM
    For anyone who wants to follow: https://github.com/Homebrew/homebrew-core/pull/42629
  • c

    cedric

    08/12/2019, 4:48 AM
    I've recently solidified the architecture for static extensions to Kash, I'll write the documentation soon and link it here
  • c

    cedric

    08/12/2019, 4:48 AM
    The current version already supports it, it's just not documented yet
  • c

    cedric

    08/12/2019, 5:27 PM
    I just documented the first iteration of static extensions and created an example project: https://github.com/cbeust/kash-example
    ๐Ÿ‘ 4
  • l

    linux_china

    08/29/2019, 3:26 AM
    @cedric could you updat to Kotlin 1.3.50, and some api changed for Kotlin jsr scripting
  • c

    cedric

    08/29/2019, 3:28 AM
    Yes I tried and had a few errors, so I delayed it
  • d

    darkmoon_uk

    08/29/2019, 4:44 AM
    https://github.com/Homebrew/homebrew-core/pull/42629 as passed checks โœ”๏ธ, and is awaiting merge? ๐Ÿ˜‰
  • c

    cedric

    08/29/2019, 4:45 AM
    I need to rebase, and hopefully, they will merge after that
  • c

    cedric

    08/29/2019, 4:45 AM
    and then I'll follow up with another PR for a more recent version
  • c

    cedric

    08/29/2019, 4:46 AM
    which hopefully will take a lot faster to be merged ๐Ÿ™‚
    ๐Ÿ‘ 2
  • p

    pabl0rg

    04/01/2021, 4:13 PM
    @louiscad Cedric was years ahead with this idea, but maybe it can be reworked into a ki plugin?
    โž• 1
    l
    c
    +2
    • 5
    • 8
  • s

    Sterling Albury

    03/09/2023, 7:28 PM
    I'm trying to find some help with KI and hoping someone here can help. I'm trying to use the kotlinx datetime library in KI but can't figure out the repository to use. I've tried a bunch of different things but nothing is working for me, and I feel like somehow I did something to affect AS being able to resolve classes in the library.
    ๐Ÿ‘ 1