remsh should guess -name and -cookie on Windows
- Dominant language
- Erlang
- Stars
- 7k
- Forks
- 1.1k
- Avg merge
- 1d 16h
- Merged PRs (30d)
- 9
Description
## Summary
`remsh` could easily be enhanced to guess at the correct value for the node name and Erlang cookie, for the CouchDB running on the current host.
## Desired Behaviour
Type `remsh` on a machine that's running CouchDB, and it should automatically self-configure so that it can connect to the locally running node.
## Possible Solution
Use `grep` (or a similar Windows function) to search the `vm.args` file for the `-name` and `-cookie` arguments. Use those as default parameters, if alternatives have not been specified on the `remsh` command line.
## Additional context
Operator happy fingers are important. Being able to type `remsh` on a machine and immediately be at the Erlang REPL is super valuable.
Contributor guide
Research direction
Start by locating the Windows implementation or entry point for `remsh` and how it handles command-line `-name` and `-cookie` options. Then inspect the CouchDB `vm.args` file handling; the work is done when bare `remsh` can use those values on the current host while explicit command-line alternatives still take precedence.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- erlang
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100