Skip to content

Releases: brevdev/brev-cli

v0.4.0

01 Dec 01:48
Compare
Choose a tag to compare

Changelog

22d7a89 in case not in user dot brev, custom command for git config here as well
dc96cd4 use pointer to mutex rather than value
23a691f fix concurrent hash access bug
bf93a48 move release api call to store
5a3d4fd move brevapi structs to entity and rename accordingly, remove other dead unused code
9d6b0cb merge
ead4b82 propertly linted
b8a3022 remove dead code from brevapi
cb1da2a remove dead code from brevapi, added store methods to secrets cmd
86100d5 refactor reset to use store
6950ad8 refactoring set command to use store
8977867 refactor delete command to use store
cfcab02 fix ls org bug
437d42a handle if get default org returns nil, refactor ls
3504b4f added installing JetBrains Gateway to login / onboarding
81cab63 pseudocode in case machine goes down again
f195dfa add print statements to create user on login, refactor start to use store, add org options to store method, flagging brevvapi constructor as deprecated
e1a1fc6 add create workspace to store
f6bc62f add reeset workspace to store
6d6875c implement workspaceSSHConnectionHealthCheck function
b7de86d add startworkspace too store and mark old client as deprecated
8668d83 handle case with credential file does ot exist for auth
12ec1f3 refactor logout to use new auth
9b7406d use the stopchannel defined in portforwardWorkspaceAtPort as worksspaceConnection channel
fd48dd6 use dns name instead of name
0460748 move terminal diplay helpers from brevapi/utils to terminal package, refactor login command to use new auth
c7a7345 move old code to deprecatedauth module to delineate boundary clearer
b1575dc add entity package, implement auth store interface
a3787e9 add business logic to auth and split up auth0 from auth
6cb4308 add framework for auth struct, fixed auth retry handler
524637b create independent auth package from brevapi
c2ace75 modifying retry/adding refresh token handler
c3037e4 remove unused function
a0b66dd retry ssh connection for any error
88ca5c7 using the spinner
d7702d4 ci issues
a64e8e3 stop only checks your workspace
9516a16 limit retries to avoid infinite loops
b05895c update README with multi line uninstall script for more precision
b13684e fix bug where brev up fails when no active workspace is set
2fccec8 golang is picky
57c880e fixed bug with port-forward command
89b7118 Merge branch 'main' of github.com:brevdev/brev-cli into main
4e1b9cb hotfix to hotfix
d6daf17 quick small fix / first commit to ls
3f98cb4 Update install-latest.sh
5e26ca7 add scaffold for error handling
55be5ac temporaryily ignore linter
0719748 add scaffold for error handling

v0.3.3

23 Nov 20:20
Compare
Choose a tag to compare

Changelog

52371e8 Update install-latest.sh
3e0756e update go mod
c0c1d1c temporaryily ignore linter
a3dc7a3 fix pipeline except for function being too long
a9dce18 remove todo comment, Login(true) prompts
9b749cc login asks about vscode to install the extension. Added a spinner when fetching the public key
9b74aba show vscode extension thing
e4f34ee notifications
36906a5 test cmd
609109c sshkey is prompted on login. login shows a welcome message
8385e01 brev ssh keys
3c4bd7e updated env
dc8e478 secrets work
aa46f4e secret variable works
9c0cd03 secret command is almost done, but probably doesn't make the network call properly
74ddea2 fix ci pipeline
caa0a31 formatted
55c149e editable default for file path secet
82372b6 interactive secret. doesn't get created tho. Also, should suggest the filepath
f570367 updated promptui color
5ceb4da moved the promptui to utils
35d1a59 capitalize help text
75a68b2 secrets isnt done, but merged
fe3838c secrets
cabda1b new users get an org created and its set to active
4256892 temp
1283a3e removed extra print statements
779341c formatted
96b3a1d it's all working
8192996 working
ad3863f adding create organization api call
ca5cb9c adding profile and email to scopes
bed2523 changing print statement to use name instead of dns
18f9bed fixing port mapping to name bug and adding test coverage
10a6b33 refactoring portforward for performance and more, adding getworkspace to store, fixing tests, adding way to add retry to http store
3215620 adding auth failure handler
1eb0338 fchecking error from spinner color
498af1a fixing linting issues
f0e5024 moved temp auth to brevapi and fixed issues
bd4b9c6 refactoring stop to not incur as much setup cost and use store
8435228 changing on wording to up in ls
522bb6c I really like this
6df7a82 spinner and start url works
11258cb spinner
c340ffe remove user validation from api client creation
769cd6e refactor to use afero.Exists instead of files.Exists
f5cc446 make getTokenFromBrevConfigFile public
a2893aa check that file exists with afero
eebbd59 make file pass gofumpt
97a6306 add gofumpt as a tool
dfa6a8b add a test for getTokenFromBrevConfigFile
66f49c1 store id token with credentials
1afd25e fixing tests and resolving linting
8d82774 adding create user method on store
bc2c9d4 refactoring http client to be able to create auth client with only token
fd17a2e removing deprecated client from store
f272a39 rewriting store to use new client and adding tests to cover them
c053710 only test on ubuntu
8343e0f fixing linter issues
6949c91 always run
9b5a85c use runner instead of matrix
fa43e07 removing unused comments
a508f65 QA'd shall and wrote first auth http request in new style with mocks
6f16330 Merge branch 'main' of github.com:brevdev/brev-cli into main
a2105c8 fish completions
c0213b3 adding get me keys to store and ading store to pf
3a4815e updated start messaging
25506a7 clone no more
93209df implementing some org and workspace http methods to store and user
aef7b38 trim whitespace
a70f554 using https://stackoverflow.com/questions/57946173/github-actions-run-step-on-specific-os syntax
3d7699e use ""
325b869 only notify when running on ubuntu
e349c18 formatting ignoring some linters and refactoring ls
7b8e000 small linting changes
e7504f8 fixing a defer
7fc7ca4 added breverrors imports
fad20bd removing some linters and fixing wrapped errors from defer
80c82b3 add .Wrap to lint ignore
45bc256 more error refactoring wrapandtrace wrap and trace
db326c5 wrap and trace wrapandtrace more refactor
d07c5d2 wrap and trace wrapandtrace more errors
33ee247 emoving caps of errors
5225fc3 addressing style checker
444bd2a refactor moar err wrapandtrace
6406a1e adding gofumpt to tools and formatted
265bc7d wrap and trace errors refactor
81bb4be removed some magic number and toggled off linter
801cf72 removing on
3661dfc fixing wrong import in on
94c3a27 finishing up brevapi breverrors changes
7353eec renaming package to errors and alias to breverrors
4e00c1f refactor brev_ssh -> brevssh
80ac845 rename brev_api to brevapi
ffae3c2 port interactive mode
80fa840 adding coverage for user config
ed35cec Revert "temporarily disable linting"
f69e911 removing files as dependency from ssh
77bf268 add report status to github action
17a0cf2 changed brev link to brev port-forward
18f6bd7 brev up
908fb0a importing brev errors to org
fbb16eb passing in private key to checkIfBrevHost
764fe66 ssh command not ready
e6fcd18 moved helper to utils
c613b85 automatically set the active org if not set
0b20e7c fixing linter and getting tests to pass
96e1903 addressing go vet issue
fbbe6a2 adding store concept and refactoring accordingly for ssh package
902e5c7 simple refactor for ssh
633b07a adding error wrapping in file and replicating github action error
49ff925 Update install-latest.sh
df5be73 Update install-latest.sh
d0be9ce adding wrap and trace to errors file
6ad9c2a commenting out brew from goreleaser
700e785 Update README.md
4302058 Update README.md

v0.3.1

23 Nov 20:05
Compare
Choose a tag to compare

Changelog

8ad96bf update go mod

v0.2.1

12 Nov 21:24
Compare
Choose a tag to compare

Changelog

0aaa325 removing on from dev feature flag
afa3df1 Update install-latest.sh
03a155d Delete install-brev.sh
543e213 Update install-latest.sh
7c90d03 update docs
445b8c8 made tests more resilient
0d49e9e add newline to log message
cec42f3 handle error from writing ssh config backup file and print backup location
7c8df37 rehydrate cache when logged in
f1ec989 more messaging2
5d3f252 more messaging
0d5010d better outputs
aacc7f8 fix and test for files.GetNewBackupSSHConfigFilePath
7b4f137 need to fix something
39634d8 output messaging
1a1d6ba Revert "change default file permissions from 0770 to 0644"
2829ab5 adding first pass of logs/feedback for on command
e952544 change default file permissions from 0770 to 0644
d5eca33 updated the annotations:
5c0cd58 func literal addressed in goroutine
0082d30 making tests pass and got it working
52a3399 fixed unique ports for workspace
902673f fixing fs so that it uses in mem file system
1aa61f6 getting tests to pass
fa30887 wiring up mapping to config
f685675 adding mapping to ssh ports
778ffe1 fixing tests and moving config logic into struct
3ddeeef start command has a loader now
3ecb203 add test for ConfigureSSH with active workspaces
645f3fb implemented getter funons
4cf8839 fix TestConfigureSSH
e76e27d adding default ssh configurer
c81c8a6 Add failing test for configure ssh
c40bfa9 refactoring to inject client that abides by interface rather than constructing it
4c86e25 ConfigureSSH writes privatekey to disk && refactor files.WriteSSHPrivateKey to use fs
16b4df7 reset text
65ebe30 use fs in ConfigureSSH
eaf019a interfacing out client
a4d313c adding multi workspace group capability
4a4424b refactor GetActiveOrgContext to take afero.Fs arguement
1b102dc tests passing for ssh
2323944 add failing test for CreateBrevSShConfigEntries
c6e04c3 add afero and test for appendBrevEntry
cc92cc5 refactoring to make more sense in on, sshall, and portforward
78bd614 remove unused field from brev ssh test suite struct
d6d9210 add test for PruneInactiveWorkspaces
cef980a pass file to appendBrevEntry
0264198 refactor logic for creating config entries and other refactoring
c2508f8 changing return error from string
5c209a9 remove useless function
2cfb58e implement GetWorkspaceLocalSSHPort
8868427 adding on pacckage
1f7aede make test Splitworkspacebyconfigmembership pass
71786b5 fixing test
554d761 changing workspaces to be injected
74618e8 making run sshall modular
2405880 cache on network call
c50e854 provide better name for ssh & files test suites
c5034ef fix checkIfBrevHost test
f256c7f remove dead function
140cdcc remove obsolete function to get sshconfig file in favor of shiny one
7c9e579 add failing test for filter existing workspaceNames
d91fb5d use files to access ssh config file
6588083 add a failing test for CheckIfBrevHost aand refactor ssh suite setup
9b9b7ac first pass of ssh all done
278fac5 add ssh config file util functions & tests for one
8d7e8f2 Merge branch 'main' of github.com:brevdev/brev-cli into main
8c29e10 threaded stuff
8f4655c ls allows optional active org flag
6e43c53 use filepath instead of fmt to build filepaths
5c8f40d add test for ssh package
13fc9c7 remove prompt from login command
cb08da5 refactoring port forward to be used outside of cmd
d9beb9b removed config command pt2
33f45ef removed import
3c4be90 typo
f402af7 brev clone activeorg override flag
4270545 reset command works
8b2286e start and stop work once the API for stop is deployed
bdc726b moved some common functions to utils
ccc46bc delete workspace works
0e5bb36 temp
27dffcf ls shows workspace info
580d259 the rest of the cache
439b950 templating and output changes
e49be66 remove configure command
bc9f178 refactor ssh config functions to its own package
9d755a0 scaffold
42b492a adding sshall command and dev toggle
8eee5b1 formatting and adding lint on save
a1f7611 fixing setup sh
7d56c3f adding smoke test and release step
1d5f3ac fixing setup script to add golang correctly
b187762 brev clone

v0.2.0

12 Nov 21:16
Compare
Choose a tag to compare

Changelog

bc628b8 update docs
0d49e9e add newline to log message
cec42f3 handle error from writing ssh config backup file and print backup location
7c8df37 rehydrate cache when logged in
f1ec989 more messaging2
5d3f252 more messaging
0d5010d better outputs
aacc7f8 fix and test for files.GetNewBackupSSHConfigFilePath
7b4f137 need to fix something
39634d8 output messaging
1a1d6ba Revert "change default file permissions from 0770 to 0644"
2829ab5 adding first pass of logs/feedback for on command
e952544 change default file permissions from 0770 to 0644
d5eca33 updated the annotations:
5c0cd58 func literal addressed in goroutine
0082d30 making tests pass and got it working
52a3399 fixed unique ports for workspace
902673f fixing fs so that it uses in mem file system
1aa61f6 getting tests to pass
fa30887 wiring up mapping to config
f685675 adding mapping to ssh ports
778ffe1 fixing tests and moving config logic into struct
3ddeeef start command has a loader now
3ecb203 add test for ConfigureSSH with active workspaces
645f3fb implemented getter funons
4cf8839 fix TestConfigureSSH
e76e27d adding default ssh configurer
c81c8a6 Add failing test for configure ssh
c40bfa9 refactoring to inject client that abides by interface rather than constructing it
4c86e25 ConfigureSSH writes privatekey to disk && refactor files.WriteSSHPrivateKey to use fs
16b4df7 reset text
65ebe30 use fs in ConfigureSSH
eaf019a interfacing out client
a4d313c adding multi workspace group capability
4a4424b refactor GetActiveOrgContext to take afero.Fs arguement
1b102dc tests passing for ssh
2323944 add failing test for CreateBrevSShConfigEntries
c6e04c3 add afero and test for appendBrevEntry
cc92cc5 refactoring to make more sense in on, sshall, and portforward
78bd614 remove unused field from brev ssh test suite struct
d6d9210 add test for PruneInactiveWorkspaces
cef980a pass file to appendBrevEntry
0264198 refactor logic for creating config entries and other refactoring
c2508f8 changing return error from string
5c209a9 remove useless function
2cfb58e implement GetWorkspaceLocalSSHPort
8868427 adding on pacckage
1f7aede make test Splitworkspacebyconfigmembership pass
71786b5 fixing test
554d761 changing workspaces to be injected
74618e8 making run sshall modular
2405880 cache on network call
c50e854 provide better name for ssh & files test suites
c5034ef fix checkIfBrevHost test
f256c7f remove dead function
140cdcc remove obsolete function to get sshconfig file in favor of shiny one
7c9e579 add failing test for filter existing workspaceNames
d91fb5d use files to access ssh config file
6588083 add a failing test for CheckIfBrevHost aand refactor ssh suite setup
9b9b7ac first pass of ssh all done
278fac5 add ssh config file util functions & tests for one
8d7e8f2 Merge branch 'main' of github.com:brevdev/brev-cli into main
8c29e10 threaded stuff
8f4655c ls allows optional active org flag
6e43c53 use filepath instead of fmt to build filepaths
5c8f40d add test for ssh package
13fc9c7 remove prompt from login command
cb08da5 refactoring port forward to be used outside of cmd
d9beb9b removed config command pt2
33f45ef removed import
3c4be90 typo
f402af7 brev clone activeorg override flag
4270545 reset command works
8b2286e start and stop work once the API for stop is deployed
bdc726b moved some common functions to utils
ccc46bc delete workspace works
0e5bb36 temp
27dffcf ls shows workspace info
580d259 the rest of the cache
439b950 templating and output changes
e49be66 remove configure command
bc9f178 refactor ssh config functions to its own package
9d755a0 scaffold
42b492a adding sshall command and dev toggle
8eee5b1 formatting and adding lint on save
a1f7611 fixing setup sh
7d56c3f adding smoke test and release step
1d5f3ac fixing setup script to add golang correctly
b187762 brev clone

v0.1.5

03 Nov 21:46
Compare
Choose a tag to compare

Changelog

c7a623b add port flag to link command
d29b147 fix entries commented out
09742c5 update readme with notes
f860891 add configure command
d1cca73 add go language server protocol for emacs
1b13226 added progress bar to refresh command
2805e82 print message to user if org not set
8ebc002 ls org makes it easier to copy
ddb772c final corner case
f7d5536 ensure only fetching my workspaces
efcf47f link args by name works too
95f735a add checklist to release
875dc67 print no workspaces on brev ls if no workspaces
2f60613 printing orgs looks more printing workspaces
d0de1c5 any variation of brev ls org/orgs/organiz works
8124c4f brev set orgname instead of using --org flags
18038c8 Update install-latest.sh

v0.1.4

29 Oct 08:01
Compare
Choose a tag to compare

Changelog

01205a1 version command using ldflag
48d136b bump install script version

v0.1.3

29 Oct 07:05
Compare
Choose a tag to compare

Changelog

776ea5f read version from buildinfo
b8503e2 add .brev
e9f0e77 Update README.md
35d6d2f adding better formatting for link
b243658 one liner for zsh completion script
07c89db making print statement for link more readable
770ff88 Update README.md
04ff82d uninstall using one line
1ec9d3d update completion command to work on mac (tested on m1)
9381a26 Update install-latest.sh
e599602 Update README.md
18f7a94 Update README.md
e8cc47f adding values to config
c4bc2ee slight styles
fb8d558 ls doesnt require active orgs set
cef3d2b adding support for cli to detect if pod does not exist
09526fa use tee to write to root directory for zsh completion
42fd63f looks beter
452170f printing the right amount of workspaces
bc6e2d2 temp
be74952 only output projects that are yours
b7c67ea print ssh connection string
5c4929d ignore .env file and instead opt for example .env in readme
ee7925b remove extra whitespace
0084389 tidy up completion docs
b87f298 update readme && zsh completion command
1e8add4 more descriptive sudo warning text
9fe73f6 fixing panic in lnk command
50238b5 more dependable location for zsh completions
f595ea7 updated the env file to use better naming convention
13a8801 added prod defaults
87f1641 uptake the new Config
df32436 adding simple config
3b06932 env file
be5bda9 .env
2b28466 added env file
51a3c73 env file
ed9a7d4 .env
1e0dc76 Update README.md
68dc9a8 remove less
f857ed7 curl to sudo sh
4850348 modify install script to get uname for bin
0d76d2b use curl instead of wget
b5df2df actual correct location
b3ab292 use sudo for ubuntu users and correct location
94c1cfb install scripts and tidy readme
70e6f3a fixing brew tap
6f5e11d goreleaser brew take 2
56bec63 goreleaser brew tap
190b6fb Revert "add build command"
9148cac add build command
db48ad8 temporarily disable linting
2bdb314 more liniting fix switch case statement
b299c14 various linting
d0f1aee make fmt
ad6894d fix go vet
6e1ec9c fixed the ls orgs
ddd9a36 save ssh private key to file
0805ae5 adding err handling
e84901c cleaning up swallowed errors and adding launches to debugger
273e41a log user in when credentials file not found
aa98559 cleaned up more code
cbf291f cleaned up some code
b2a0155 better output messaging
d52716b fix config endpoint
cd0154f Revert "Revert "fix login when credentials.json is malformed""
9e5c310 comment out orgs check in ls
e890da2 Revert "fix login when credentials.json is malformed"
b0ac84e disable completions and RunCommandLink no longer anonymous
08fee63 adding condition to ls for more than 0 args
3addc38 Merge branch 'main' of ssh://github.com/brevdev/brev-cli into main
ee4fe1a refactored some stuff for link and config
a0838ba removed get function
bb2ea61 ls orgs works
1addf6c Merge branch 'main' of ssh://github.com/brevdev/brev-cli into main
30ac1e4 hooking up a bunch of things
8ef9257 fix login when credentials.json is malformed
67bf077 Merge branch 'main' of ssh://github.com/brevdev/brev-cli into main
2377970 cleaning up
1e698f9 updated brev set to use the cache
a423ebd adding completion helpers
6c2cde8 cleaning up command
0e0c6b6 updated the cache functions
10ab0b5 adding k8s constructor
38052e4 using base64
ca64088 concurrently caching workspaces per org
d653a80 formatted
40ac591 moved cache to its own file
af1dc8a create the files if they dont exist
49d655e cache happy path and it feels good!
d7ae81f resolving link issues
54443ce resolving new portforward with link
ac2c0d7 refresh cmd for writing and reading from cache
c3c5ce1 brev link rename
60215ff Merge branch 'version' into main
81ffde4 use lowercase go for build command (was breaking linux build)
6da3d6a remove unused args
a6a395b refactor getting filepaths for cert & ssh key, use new methods in portforward command
0a3fc04 make name more consistent
48fa490 save private keys to filesystem
1680375 fixed the make vet issues
a4ec6af added version command. but it doesn't work until we have a github release
5aa0822 added build & release steps from old cli
a883a0f fixing build errors
9d850e1 Merge branch 'main' of https://github.com/brevdev/brev-cli into main
7246089 ran go fmt
1b42c3e remove mockgen to try to fix https://github.com/brevdev/brev-cli/runs/3985565240?check_suite_focus=true#step:4:298
4158bc1 Merge branch 'main' of https://github.com/brevdev/brev-cli into main
4ced62a brev ssh
00d0777 change binary name to brev, add fast-build command to makefile
d6ea014 add get sshprivkey command (not functional)
0f09d1f add logout command and DRY getting credentials file
5ed96f9 ls command finished
f316b81 ls command only works if the active org is set
d0910a5 set actually sets the context and stores it in the file
39604bd merge
2e2fda0 store the org as a context in ~/.brev/active_org.json
37d9474 validate token when creating api client
f8edc18 merged
d581792 some changes to set
ee25321 refactor Agent -> Client & add GetMe command
3ff1074 remove brev binary from source control
f446db5 fix bug where login was called every time get command was run
db5f3cb adding the set command
454b974 Update readme title
e09e4dc add GetMe method to User to be used to validate token
9055bc5 add reminder
3db9eb7 remove cruft
cc8fe82 moving stuff around
94be632 remove unused structs & dependency
076b4b6 auth logic in auth package instead of login command
d539c7e remove legacy files and move auth code into single file
424aec1 update comment to reflect behavior
d6a8a0b remove unused variables
c519c76 refactor out some unused code
7d71684 check for credentials before login (kinda hacky)
3836f62 login cmd works
fa99ffa fix build for login cmd
2f8f9fb Merge branch 'main' of https://github.com/brevdev/brev-cli into main
a0c05fc brev get finished. DX comes later
894804c brev get organizations
87fc9ac formatting, dependencies, and cleanup to build (fails for windows)
e205422 add auth package from auth0 and prototyping login
c3b560c delete login file
5ef3e7d updated get command
639b44b added another old package and started the brev get command
6d57275 Merge branch 'main' of https://github.com/brevdev/brev-cli into main
50cae10 fixed more shit
c7e3e03 added everything and resolved dependencies
7b33c4a get command
b75e4d1 get command
740d13f renaming to connect ssh
5e1e314 changing name
fcbb00b run portforward command from ssh command
49d1e43 simple arg parse ssh command
eea539c ignore build artifacts
d3ceab9 adding ssh commmand
5cf3d68 adding portforward mvp
5b06348 cleaning up from template
bfc0bcc Initial commit

v0.1.2

28 Oct 18:43
2852497
Compare
Choose a tag to compare

Changelog

2852497 adding values to config
a3f8f9a slight styles
078b228 ls doesnt require active orgs set
4194c5a adding support for cli to detect if pod does not exist
552cd50 use tee to write to root directory for zsh completion
6a6a465 looks beter
0f46e97 printing the right amount of workspaces
b3abed3 temp
384f6eb only output projects that are yours
d1a6706 print ssh connection string
3225f10 ignore .env file and instead opt for example .env in readme
4d514fc remove extra whitespace
2477564 tidy up completion docs
6bab52e update readme && zsh completion command
55676e0 more descriptive sudo warning text
32f4d38 fixing panic in lnk command
9fe6006 more dependable location for zsh completions
c4effbd updated the env file to use better naming convention
4143e74 added prod defaults
cc45158 uptake the new Config
c451a6e adding simple config
7486389 env file
7421d30 .env
520462a added env file
366db93 env file
7bc5d96 .env
f7d77eb Update README.md
d11f63e remove less
bc4371f curl to sudo sh
109b287 modify install script to get uname for bin
fb56d73 use curl instead of wget
d1fd2ff actual correct location
8b4582e use sudo for ubuntu users and correct location
7329319 install scripts and tidy readme
1ea90c5 fixing brew tap
221b01b goreleaser brew take 2
4b864ff goreleaser brew tap

v0.1.1

27 Oct 05:41
Compare
Choose a tag to compare

Full Changelog: 0.1.0...v0.1.1