mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-07-15 07:56:11 +08:00
Git Clone: Cleanup code
This commit is contained in:
@ -45,22 +45,24 @@ Future gitClone() async {
|
||||
const platform = const MethodChannel('gitjournal.io/git');
|
||||
|
||||
print("Going to git clone");
|
||||
await platform.invokeMethod('gitClone', {
|
||||
'cloneUrl': "root@bcn.vhanda.in:git/notes",
|
||||
'filePath': "/",
|
||||
});
|
||||
print("FOO");
|
||||
try {
|
||||
await platform.invokeMethod('gitClone', {
|
||||
'cloneUrl': "root@bcn.vhanda.in:git/notes",
|
||||
'folderName': "journal",
|
||||
});
|
||||
print("Done");
|
||||
} on PlatformException catch (e) {
|
||||
print("gitClone Failed: '${e.message}'.");
|
||||
}
|
||||
}
|
||||
|
||||
Future generateSSHKeys() async {
|
||||
print("generateSSHKeys");
|
||||
print("generateSSHKeyss");
|
||||
try {
|
||||
const platform = const MethodChannel('gitjournal.io/git');
|
||||
String publicKey = await platform.invokeMethod('generateSSHKeys', {});
|
||||
print("Public Key " + publicKey);
|
||||
} on PlatformException catch (e) {
|
||||
print("Failed to generateSSHKeys: '${e.message}'.");
|
||||
} catch (e) {
|
||||
print("EX: '${e.message}'.");
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user