Skip to content

Commit 0fabbbf

Browse files
authored
Add :cf as a shortcut for :controlflow (#571)
2 parents d140890 + 3046655 commit 0fabbbf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cli/repl/commands/cfg.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ async function controlflow(shell: RShell, remainingLine: string) {
1515
export const controlflowCommand: ReplCommand = {
1616
description: 'Get mermaid code for the control-flow graph of R code, start with \'file://\' to indicate a file',
1717
usageExample: ':controlflow',
18-
aliases: [ 'cfg' ],
18+
aliases: [ 'cfg', 'cf' ],
1919
script: false,
2020
fn: async(output, shell, remainingLine) => {
2121
const result = await controlflow(shell, remainingLine)
@@ -28,7 +28,7 @@ export const controlflowCommand: ReplCommand = {
2828
export const controlflowStarCommand: ReplCommand = {
2929
description: 'Get a mermaid url of the control-flow graph of R code, start with \'file://\' to indicate a file',
3030
usageExample: ':controlflow',
31-
aliases: [ 'cfg*' ],
31+
aliases: [ 'cfg*', 'cf*' ],
3232
script: false,
3333
fn: async(output, shell, remainingLine) => {
3434
const result = await controlflow(shell, remainingLine)

0 commit comments

Comments
 (0)