Emojicode Documentation 1.0 beta 2
ads via Carbon Build smarter RAG applications on AWS ads via Carbon

Class ๐Ÿ’ป

Interaction with the operating system.

๐Ÿ’ป provides several class methods that can be used to interact with the operating system. It cannot be instantiated.

Type Methods

๐ŸŽž

๐Ÿ‡โ—๏ธ ๐ŸŽž โžก๏ธ ๐Ÿจ๐Ÿš๐Ÿ”ก๐Ÿ†

Returns a list of the arguments passed to the programm. Calling this method is rather expensive.

๐ŸŒณ

๐Ÿ‡โ—๏ธ ๐ŸŒณ  variableName ๐Ÿ”ก โžก๏ธ ๐Ÿฌ๐Ÿ”ก

Gets an environment variable by its name. If the variable cannot be found โœจ is returned.

๐Ÿšช

๐Ÿ‡โ—๏ธ ๐Ÿšช  status ๐Ÿ”ข 

Immediately exits the program with the given status code. The code may not be larger than 255 on most operating systems.

๐Ÿ•ด

๐Ÿ‡โ—๏ธ ๐Ÿ•ด  command ๐Ÿ”ก 

Returns the standard output of running command in a subshell.

๐Ÿ•ฐ

๐Ÿ‡โ—๏ธ ๐Ÿ•ฐ โžก๏ธ ๐Ÿ”ข

Returns the current time in seconds since the Epoch in Greenwich Mean Time.

๐Ÿคฏ

๐Ÿ‡โ—๏ธ ๐Ÿคฏ  message ๐Ÿ”ก 

Panic. Aborts the program with the provided message.

Caution

Only use this function when the program hits upon an error so serious that recovery is impossible.