Skip to content

Commit

Permalink
Fix node task interactivity
Browse files Browse the repository at this point in the history
  • Loading branch information
eternauta1337 committed Mar 1, 2024
1 parent 9874543 commit 4693d51
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/ethernaut-network/src/tasks/autocomplete/fork.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
const prompt = require('common/src/prompt')
const storage = require('../../internal/storage')

module.exports = async function autocompleteFork({ fork }) {
if (fork) return undefined
module.exports = async function autocompleteFork({ fork, paramDefault }) {
const valueProvided = fork !== undefined
const isDefault = fork === paramDefault

// No need to autocomplete?
if (valueProvided && !isDefault) return undefined

const choices = ['none'].concat(
Object.keys(storage.readNetworks()).filter(
Expand Down

0 comments on commit 4693d51

Please sign in to comment.