This commit is contained in:
Olivier Gagnon
2021-11-19 23:45:34 -05:00
19 changed files with 231 additions and 88 deletions

View File

@@ -3788,9 +3788,10 @@ export interface NS extends Singularity {
* @remarks
* RAM cost: 0 GB
*
* @param format - format of the message
* @param msg - Value to be printed.
*/
tprintf(msg: any): void;
tprintf(format: string, ...values: any[]): void;
/**
* Clears the scripts logs.
@@ -4193,12 +4194,7 @@ export interface NS extends Singularity {
* @param destination - Host of the destination server, which is the server to which the file will be copied.
* @returns True if the script/literature file is successfully copied over and false otherwise. If the files argument is an array then this function will return true if at least one of the files in the array is successfully copied.
*/
scp(
files: string[],
source: string,
// tslint:disable-next-line:unified-signatures
destination: string,
): Promise<boolean>;
scp(files: string | string[], source: string, destination: string): Promise<boolean>;
/**
* List files on a server.