auto paste in private key page

This commit is contained in:
lollipopkit
2023-01-09 13:46:02 +08:00
parent b2e2d4c603
commit 9c8f9c3b9f
5 changed files with 39 additions and 31 deletions

View File

@@ -23,6 +23,8 @@ const _dockerPS = 'docker ps -a';
final _logger = Logger('DockerProvider');
class DockerProvider extends BusyProvider {
final dockerStore = locator<DockerStore>();
SSHClient? client;
String? userName;
List<DockerPsItem>? items;
@@ -156,7 +158,7 @@ class DockerProvider extends BusyProvider {
// judge whether to use DOCKER_HOST / sudo
String _wrap(String cmd) {
final dockerHost = locator<DockerStore>().getDockerHost(hostId!);
final dockerHost = dockerStore.getDockerHost(hostId!);
if (dockerHost == null || dockerHost.isEmpty) {
return 'sudo $cmd'.withLangExport;
}