feat: search for workspace config in parent dir

This commit is contained in:
jon4hz
2023-02-25 01:25:39 +01:00
parent 978423ba5b
commit 1777f98aef
2 changed files with 38 additions and 3 deletions
+2 -2
View File
@@ -89,8 +89,8 @@ func RequireServiceToken() {
}
func RequireLocalWorkspaceFile() {
workspaceFileExists := WorkspaceConfigFileExistsInCurrentPath()
if !workspaceFileExists {
workspaceFilePath, _ := FindWorkspaceConfigFile()
if workspaceFilePath == "" {
PrintErrorMessageAndExit("It looks you have not yet connected this project to Infisical", "To do so, run [infisical init] then run your command again")
}