process#argv TypeScript Examples

The following examples show how to use process#argv. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: decorator.ts    From evolvejs with GNU Affero General Public License v3.0 6 votes vote down vote up
@Builder({
	token: argv[2] ?? process.env.DISCORD_TOKEN,
	useDefaultSetting: true,
})
class _ extends EvolveClient {
	@Event()
	public clientReady() {
		console.log("[Client: EvolveClient] => Ready");
		this.sharder.destroyAll(0);
	}

	@Event()
	public shardSpawn(id: string) {
		console.log(`[Shard: ${id}] => Spawned`);
	}

	@Event()
	public shardDestroy(id: string) {
		console.log(`[Shard: ${id}] => Destroyed`);
	}
}
Example #2
Source File: index.ts    From AreWeAntiCheatYet with MIT License 6 votes vote down vote up
console.log(`Writing results to: ${argv[4]}`);
Example #3
Source File: builder.ts    From evolvejs with GNU Affero General Public License v3.0 5 votes vote down vote up
client: EvolveClient = new EvolveBuilder()
	.setToken(argv[2] ?? process.env.DISCORD_TOKEN ?? "...")
	.build()
Example #4
Source File: index.ts    From AreWeAntiCheatYet with MIT License 5 votes vote down vote up
current: Game[] = JSON.parse(fs.readFileSync(argv[2]).toString())
Example #5
Source File: index.ts    From AreWeAntiCheatYet with MIT License 5 votes vote down vote up
previous: Game[] = JSON.parse(fs.readFileSync(argv[3]).toString())
Example #6
Source File: index.ts    From AreWeAntiCheatYet with MIT License 5 votes vote down vote up
rss_content = fs.readFileSync(argv[4]).toString()
Example #7
Source File: index.ts    From AreWeAntiCheatYet with MIT License 5 votes vote down vote up
console.log(`Generating RSS-Feed from ${argv[2]} and ${argv[3]}`);
Example #8
Source File: index.ts    From AreWeAntiCheatYet with MIT License 5 votes vote down vote up
fs.writeFileSync(argv[4], doc.toString(true));
Example #9
Source File: main.ts    From ng-chrome-extension with MIT License 5 votes vote down vote up
main(argv.slice(2));