-
-
Notifications
You must be signed in to change notification settings - Fork 17
Init from url query string
ZHAO Xudong edited this page Nov 6, 2023
·
2 revisions
const init = {
title: 'my init terminal',
user: 'root',
password: 'some-password',
host: 'xx.com',
// batchOpFile: '/abs/path/to/batch-op-list.csv',
// path: '/abs/path/to/private-key',
// passphrase: 'some-passphrase for private key',
// setEnv: 'MYENV=xxx MYENV2=yyy',
// sftpOnly: false // sftpOnly
}
const q = encodeURIComponent(JSON.stringify(init))
const url = `http://127.0.0.1:5577?init=${q}`