nushell / nu_scripts

A place to share Nushell scripts with each other
MIT License
771 stars 230 forks source link

fix(aws): Fix select-aws-profile script functionality and style #946

Closed reinno closed 2 months ago

reinno commented 2 months ago

What

Why

The aws/select-aws-profile script syntax is outdated

➜ nu
Error: nu::parser::named_as_module

  × Can't export command named same as the module.
    ╭─[~/.config/nushell/nu_scripts/modules/aws/select-aws-profile.nu:12:12]
 11 │ #     select-aws-profile
 12 │ export def select-aws-profile [] {
    ·            ─────────┬────────
    ·                     ╰── can't export from module select-aws-profile
 13 │     hide AWS_REGION;
    ╰────
  help: Module select-aws-profile can't export command named the same as the module. Either change the module name, or export `main` command.
fdncred commented 2 months ago

Thanks