Git Product home page Git Product logo

Comments (9)

dwt avatar dwt commented on August 31, 2024 1

Scratch that, the problem was that I was running ❯ make test-pure-on FISH_VERSION=3.3.1 CMD="fishtape tests/_pure_prompt_virtualenv.test.fish" - which actually runs all the tests instead of restricting them.

from pure.

edouard-lopez avatar edouard-lopez commented on August 31, 2024

Hello @dwt,
Sure, PRs are welcome ❀️

Suggestion

A variable defining the symbol for each indicator could do the trick, e.g declaring

 _pure_set_default pure_symbol_virtualenv "🐍"
 _pure_set_default pure_symbol_kubernetes "☸️"

By default, I would prefer having it empty for now, to have opt-in mechanism.

Could you try to update the test as well? They are still buggy when you run them all, but you should be able to run the one related to one feature, like:

❯ make dev-pure-on FISH_VERSION=3.1.2 CMD="fishtape tests/_pure_prompt_virtualenv.test.fish"

from pure.

dwt avatar dwt commented on August 31, 2024

Hm, that doesn't seem so easy, I'm getting hangs in the test suite with errors like this:

fish: Unknown command: _print_filename
/tmp/.pure/tests/migration-to-4.0.0.test.fish (line 1): 
_print_filename $current_filename
^
in command substitution
        called on line 2 of file /tmp/.pure/tests/migration-to-4.0.0.test.fish
/tmp/.pure/tests/migration-to-4.0.0.test.fish (line 2): Unknown command
@mesg (_print_filename $current_filename)
      ^

After that the test container just hangs indefinitely, until I manually kill the container. Any advice?

from pure.

edouard-lopez avatar edouard-lopez commented on August 31, 2024

I will add variable, so people can disable those features if need be:

_pure_set_default pure_enable_virtualenv true
_pure_set_default pure_enable_kubernetes true

from pure.

zonywhoop avatar zonywhoop commented on August 31, 2024

@edouard-lopez were you able to make any progress on this? I too am looking for this (similar) functionality but honestly don't see k8s context support in the current code base. Was that a plugin you added or something else?

from pure.

edouard-lopez avatar edouard-lopez commented on August 31, 2024

Hello @zonywhoop, no progress on my side @dwt was working on a PR, I believe.

However, I see two features in this issue:

  1. add a flag to control virtualenv display and add a customizable prefix (cf. functions/_pure_prompt_container.fish)
  2. add support for k8s context + customizable prefix. There are several prompts that offer k8s support, we can get inspired by them:

I'm going to create another issue for the kubernetes one.

from pure.

edouard-lopez avatar edouard-lopez commented on August 31, 2024

see Add kubernetes/k8s support #322

from pure.

edouard-lopez avatar edouard-lopez commented on August 31, 2024

@dwt @zonywhoop
K8s support has been shipped with https://github.com/pure-fish/pure/tree/v4.6.0

from pure.

edouard-lopez avatar edouard-lopez commented on August 31, 2024

I'm working on the Python/virtualenv feature on #325

from pure.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.