Skip to content

Commit 26772f7

Browse files
author
José Valim
committed
Rename system_info to runtime_info
1 parent c6238e0 commit 26772f7

File tree

2 files changed

+27
-27
lines changed

2 files changed

+27
-27
lines changed

lib/iex/lib/iex/helpers.ex

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -22,28 +22,28 @@ defmodule IEx.Helpers do
2222
2323
There are many other helpers available, here are some examples:
2424
25-
* `b/1` - prints callbacks info and docs for a given module
26-
* `c/1` - compiles a file into the current directory
27-
* `c/2` - compiles a file to the given path
28-
* `cd/1` - changes the current directory
29-
* `clear/0` - clears the screen
30-
* `exports/1` - shows all exports (functions + macros) in a module
31-
* `flush/0` - flushes all messages sent to the shell
32-
* `h/0` - prints this help message
33-
* `h/1` - prints help for the given module, function or macro
34-
* `i/0` - prints information about the last value
35-
* `i/1` - prints information about the given term
36-
* `ls/0` - lists the contents of the current directory
37-
* `ls/1` - lists the contents of the specified directory
38-
* `open/1` - opens the source for the given module or function in your editor
39-
* `pid/1` - creates a PID from a string
40-
* `pid/3` - creates a PID with the 3 integer arguments passed
41-
* `pwd/0` - prints the current working directory
42-
* `r/1` - recompiles the given module's source file
43-
* `recompile/0` - recompiles the current project
44-
* `system_info/0` - prints system info (versions, memory usage, stats)
45-
* `v/0` - retrieves the last value from the history
46-
* `v/1` - retrieves the nth value from the history
25+
* `b/1` - prints callbacks info and docs for a given module
26+
* `c/1` - compiles a file into the current directory
27+
* `c/2` - compiles a file to the given path
28+
* `cd/1` - changes the current directory
29+
* `clear/0` - clears the screen
30+
* `exports/1` - shows all exports (functions + macros) in a module
31+
* `flush/0` - flushes all messages sent to the shell
32+
* `h/0` - prints this help message
33+
* `h/1` - prints help for the given module, function or macro
34+
* `i/0` - prints information about the last value
35+
* `i/1` - prints information about the given term
36+
* `ls/0` - lists the contents of the current directory
37+
* `ls/1` - lists the contents of the specified directory
38+
* `open/1` - opens the source for the given module or function in your editor
39+
* `pid/1` - creates a PID from a string
40+
* `pid/3` - creates a PID with the 3 integer arguments passed
41+
* `pwd/0` - prints the current working directory
42+
* `r/1` - recompiles the given module's source file
43+
* `recompile/0` - recompiles the current project
44+
* `runtime_info/0` - prints runtime info (versions, memory usage, stats)
45+
* `v/0` - retrieves the last value from the history
46+
* `v/1` - retrieves the nth value from the history
4747
4848
Help for all of those functions can be consulted directly from
4949
the command line using the `h/1` helper itself. Try:
@@ -468,9 +468,9 @@ defmodule IEx.Helpers do
468468
end
469469

470470
@doc """
471-
Prints system information such as versions, memory usage and statistics.
471+
Prints vm/runtime information such as versions, memory usage and statistics.
472472
"""
473-
def system_info do
473+
def runtime_info do
474474
print_pane("System and architecture")
475475

476476
print_entry("Elixir version", System.version)

lib/iex/test/iex/helpers_test.exs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -235,10 +235,10 @@ defmodule IEx.HelpersTest do
235235
end
236236
end
237237

238-
describe "system_info" do
239-
test "shows system information" do
238+
describe "runtime_info" do
239+
test "shows vm information" do
240240
assert "\n## System and architecture" <> _ =
241-
capture_io(fn -> system_info() end)
241+
capture_io(fn -> runtime_info() end)
242242
end
243243
end
244244

0 commit comments

Comments
 (0)