mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: implement organization context in the cli (#12259)
* feat: implement organization context in the cli `coder org show current`
This commit is contained in:
@@ -70,6 +70,14 @@ func (r Root) PostgresPort() File {
|
||||
// File provides convenience methods for interacting with *os.File.
|
||||
type File string
|
||||
|
||||
func (f File) Exists() bool {
|
||||
if f == "" {
|
||||
return false
|
||||
}
|
||||
_, err := os.Stat(string(f))
|
||||
return err == nil
|
||||
}
|
||||
|
||||
// Delete deletes the file.
|
||||
func (f File) Delete() error {
|
||||
if f == "" {
|
||||
|
||||
Reference in New Issue
Block a user