ax(node): replace prose comment with usage example on NewNodeManagerWithPaths
Some checks are pending
Test / test (push) Waiting to run
Security Scan / security (push) Successful in 40s

Co-Authored-By: Charon <charon@lethean.io>
This commit is contained in:
Claude 2026-04-02 11:33:27 +01:00
parent 7921881ed6
commit 04c05c43a7
No known key found for this signature in database
GPG key ID: AF404715446AEB41

View file

@ -96,8 +96,8 @@ func NewNodeManager() (*NodeManager, error) {
return NewNodeManagerWithPaths(keyPath, configPath)
}
// NewNodeManagerWithPaths creates a NodeManager with custom paths.
// This is primarily useful for testing to avoid xdg path caching issues.
// manager, err := node.NewNodeManagerWithPaths("/tmp/test.key", "/tmp/test.json")
// if err != nil { return err }
func NewNodeManagerWithPaths(keyPath, configPath string) (*NodeManager, error) {
manager := &NodeManager{
keyPath: keyPath,