Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flox displays active environment // flox envs #752

Closed
ghudgins opened this issue Jan 10, 2024 · 7 comments
Closed

flox displays active environment // flox envs #752

ghudgins opened this issue Jan 10, 2024 · 7 comments
Labels
product Tickets relevant to the flox product team and/or functional requirements team-cli Tickets relevant to the flox CLI team

Comments

@ghudgins
Copy link
Contributor

ghudgins commented Jan 10, 2024

Motivation

When my terminal preferences are overriding flox's prompt (#637)
I need flox to display the active environment(s) in its commands
So I can know where I am

Acceptance Criteria

Also covered with flox envs --active, implemented in #934

@ghudgins ghudgins added team-cli Tickets relevant to the flox CLI team product Tickets relevant to the flox product team and/or functional requirements labels Jan 10, 2024
@ghudgins
Copy link
Contributor Author

+1 from research. person had #678 issue and wanted flox status

@ghudgins
Copy link
Contributor Author

questions flox status could help answer (from @rossturk )

  • am I in an environment or not?
  • am I in more than one environment? in what order are they layered?
  • what's my sync status? do I need to run a pull?
  • what's my freshness status? would things change if I ran an upgrade?
  • do I have known security issues (dun dun DUN)

@ysndr
Copy link
Contributor

ysndr commented Jan 22, 2024

TBF those questions could also be answered by inspecting $FLOX_ACTIVE_ENVIRONMENTS which also provides a bit more information on what type of environment is active:

❯ flox activate --                                         
flox [cli] 
❯ echo $FLOX_ACTIVE_ENVIRONMENTS 
[{"type":"dot-flox","path":"/Volumes/Projects/Flox/flox/flox/cli","pointer":{"name":"cli","version":1}}]

I guess a flox status command should be not more than a pretty printer for that variable

@ghudgins
Copy link
Contributor Author

ghudgins commented Feb 6, 2024

+1 user research

@ghudgins ghudgins changed the title flox displays active environment flox displays active environment (flox status) Feb 6, 2024
@ghudgins
Copy link
Contributor Author

ghudgins commented Feb 6, 2024

consider adding a tip about exiting if we do flox status

@jennymahmoudi jennymahmoudi changed the title flox displays active environment (flox status) flox displays active environment Feb 28, 2024
@ghudgins
Copy link
Contributor Author

+1 from research today

@ghudgins ghudgins changed the title flox displays active environment flox displays active environment // flox envs Mar 22, 2024
@ghudgins
Copy link
Contributor Author

duplicate of #934

@ghudgins ghudgins closed this as not planned Won't fix, can't repro, duplicate, stale Mar 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
product Tickets relevant to the flox product team and/or functional requirements team-cli Tickets relevant to the flox CLI team
Projects
None yet
Development

No branches or pull requests

2 participants