Skip to content

doc: document argument variant in the repl.md - #10221

Closed
vsemozhetbyt wants to merge 1 commit into
nodejs:masterfrom
vsemozhetbyt:repl.md.start
Closed

doc: document argument variant in the repl.md#10221
vsemozhetbyt wants to merge 1 commit into
nodejs:masterfrom
vsemozhetbyt:repl.md.start

Conversation

@vsemozhetbyt

@vsemozhetbytvsemozhetbyt commented Dec 10, 2016

Copy link
Copy Markdown
Contributor
Checklist
  • documentation is changed or added
  • commit message follows commit guidelines
Affected core subsystem(s)

doc, repl

Description of change

Document that options in the repl.start([options]) can be a string.

This commit is separated from #10160 on demand for more careful evaluation.

Please, consider these facts:

  1. String argument is already used in the doc examples here and here.

  2. It is also used in the repl.jscomment example.

  3. The chain from string argument to prompt and other options setting is this: exports.start -> REPLServer -> Interface in the readline.js

@nodejs-github-botnodejs-github-bot added dont-land-on-v7.x doc Issues and PRs related to the documentations. repl Issues and PRs related to the REPL subsystem. labels Dec 10, 2016
Comment threaddoc/api/repl.md Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you elaborate here on what specifying the input prompt means? Perhaps with an example?

@vsemozhetbytvsemozhetbytDec 11, 2016

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vsemozhetbytvsemozhetbytDec 12, 2016

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@benjamingr I've added an example. Is it OK? If the elaboration is still needed, could you suggest one? I am not very good at English.

`options` in the `repl.start([options])` can be a string.
@benjamingr

Copy link
Copy Markdown
Member

Yes, LGTM

@vsemozhetbyt

Copy link
Copy Markdown
ContributorAuthor

/cc @nodejs/documentation

@lance

Copy link
Copy Markdown
Member

Landed in 50cb3a3

@lancelance closed this Dec 12, 2016
lance pushed a commit that referenced this pull request Dec 12, 2016
`options` in the `repl.start([options])` can be a string.
Ref: #10160
PR-URL: #10221
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
@vsemozhetbyt
vsemozhetbyt deleted the repl.md.start branch December 12, 2016 21:38
@vsemozhetbytvsemozhetbyt mentioned this pull request Dec 12, 2016
2 tasks
targos pushed a commit that referenced this pull request Jan 28, 2017
`options` in the `repl.start([options])` can be a string.
Ref: #10160
PR-URL: #10221
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
@italoacasasitaloacasas mentioned this pull request Jan 29, 2017
italoacasas pushed a commit to italoacasas/node that referenced this pull request Jan 30, 2017
`options` in the `repl.start([options])` can be a string.
Ref: nodejs#10160
PR-URL: nodejs#10221
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
italoacasas pushed a commit to italoacasas/node that referenced this pull request Jan 30, 2017
`options` in the `repl.start([options])` can be a string.
Ref: nodejs#10160
PR-URL: nodejs#10221
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
MylesBorins pushed a commit that referenced this pull request Mar 8, 2017
`options` in the `repl.start([options])` can be a string.
Ref: #10160
PR-URL: #10221
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
MylesBorins pushed a commit that referenced this pull request Mar 9, 2017
`options` in the `repl.start([options])` can be a string.
Ref: #10160
PR-URL: #10221
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
@MylesBorinsMylesBorins mentioned this pull request Mar 9, 2017
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docIssues and PRs related to the documentations.replIssues and PRs related to the REPL subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

@vsemozhetbyt@benjamingr@lance@mscdex@MylesBorins@nodejs-github-bot