Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 3c1ed11

Browse files
committedMay 31, 2024·
Adjust comments.
1 parent 03fe19c commit 3c1ed11

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎internal/pkg/agent/application/paths/common_development_mode.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// or more contributor license agreements. Licensed under the Elastic License;
33
// you may not use this file except in compliance with the Elastic License.
44

5+
// This file encapsulates the common paths that need to account for development installation.
56
package paths
67

78
import "path/filepath"
@@ -12,7 +13,7 @@ const DevelopmentInstallDirName string = "DevelopmentAgent"
1213

1314
var isDevelopmentMode bool
1415

15-
// SetIsDevelopmentMode sets whether the agent is installed in development mode or not.
16+
// SetIsDevelopmentMode sets whether the agent is currently in or is being installed in development mode.
1617
func SetIsDevelopmentMode(developmentMode bool) {
1718
isDevelopmentMode = developmentMode
1819
}
@@ -57,6 +58,7 @@ func ShellWrapperPath() string {
5758
}
5859

5960
// ControlSocketRunSymlink returns the shell wrapper path accounting for development mode.
61+
// Does not auto detect development mode because it is used outside of agent itself in the testing framework.
6062
func ControlSocketRunSymlink(isDevelopmentMode bool) string {
6163
if isDevelopmentMode {
6264
return controlSocketRunSymlinkDevelopmentMode

0 commit comments

Comments
 (0)
Please sign in to comment.