Version returns the version from [Nix.Info] or an empty string if there was an error.
()
| 123 | // Version returns the version from [Nix.Info] or an empty string if there was |
| 124 | // an error. |
| 125 | func (n *Nix) Version() string { |
| 126 | info, _ := n.Info() |
| 127 | return info.Version |
| 128 | } |
| 129 | |
| 130 | // Info returns Nix version information. It caches the result after the first |
| 131 | // call, which means it won't reflect any configuration changes to Nix. Create a |
no test coverage detected