Skip to content

Allow running deno init -A to support CI or non-prompt supporting envs #31498

@csvn

Description

@csvn

Currently, the available options for deno init (deno init --help) are:

scaffolds a basic Deno project with a script, test, and configuration file

Usage: deno init [OPTIONS] [DIRECTORY OR PACKAGE]...

Arguments:
  [DIRECTORY OR PACKAGE]...

Options:
  -h, --help[=<CONTEXT>]  [possible values: unstable, full]
      --lib               Generate an example library project
      --npm               Generate a npm create-* project
  -q, --quiet             Suppress diagnostic output
      --serve             Generate an example project for `deno serve`

This means there's no way to run run this command e.g. in CI to scaffold a project, because there's no -A/-y or --force flags to pre-approve the command. The command will just fail with "Permission denied (os error 13)".

Image

Solution

Add -A/--allow-all as a flag to deno init?

Rererences

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions