Skip to content

Further work on spoon shell #8

@Bios-Marcel

Description

@Bios-Marcel

In a very basic form this is usable now, however, it's missing some basic building blocks required for a mature implementation.

Therefore the current WIP will be merged as to not cause too many conflicts. The current implementations doesn't break anything, but it's not production ready.

Building blocks required:

  • Parse Architechture fields and handle accordingly in code
  • Ability to generate / delete shims for manifest

    This will allow us to properly delete dependencies that aren't needed anymore AND we can hardlink existing installations from the users scoop installation, as all we need to do is recreate the shims then. This is much faster than potentially unpacking a zip file / installer.

TODOs from code:

  • Support for different shells (pwsh / powershell / batch / bash / wsl?)
  • Proper support for subshelling (Might not easily work on powershell)

    SOOO, I actually thought there was a severe issue with subshelling. However, during my tests, I always used the lua repl. For some reason, upon exiting the repl, it breaks the terminal session. However, using the node repl for example, doesn't cause the same issue. So this might be a lua or a golang bug afterall. Even greater, this seems to only fail if lua is quit via Ctrl-C, not via the lua exit function.

  • env_set variables:
    • $env:CUSTOM
    • $source variable
  • Prevent install (unpack) if app is already installed in user, instead hardlink (its basically free)
  • uninstall unused ones if shell is called againts

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions