How to respond to command promts
Open
- Dominant language
- Java
- Stars
- 2.7k
- Forks
- 620
- Avg merge
- 3d 23h
- Merged PRs (30d)
- 11
Description
Im trying to execute a "git clone" which will prompt for username and password. I currently have this:
```java
try (var session = client.startSession()) {
LOGGER.info("Cloning game repository on " + domain);
var cmd = session.exec("git clone " + repository.getPath() + " server");
//TODO run git login process
cmd.join(2, TimeUnit.MINUTES);
}
```
How can I do this? I heard that "shell" might be a way to go but Im really confused on what I have to do with it and there is no docs.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.