Skip to content

Help Wanted: Port the before_v.060 scripts #221

Closed

Description

@fdncred

It would be great to get all the "old" scripts ported to the latest version of nushell. Anyone want to help with it?

The steps would be something like this:

  1. Take a script or folder from the nu_scripts/before_v0.60 path
  2. Copy it and/or create the folder and copy it to the root of the repo
  3. In the newly created copied script/folder, update the nushell syntax to support the latest nushell
  4. Submit a PR. One at a time or a bunch at a time.

Any takers?

Activity

  1. added
    good first issue
    help wanted
    on May 16, 2022
  2. pinned this issue on May 16, 2022
  3. Yethal commented on May 22, 2022

    @Yethal
    Contributor

    Sure, I can take a few

  4. 39555 commented on May 4, 2024

    @39555

    I'm starting to slowly port all scripts. Here is my autogenerated checkup list for tracking the progress.

    Check list
    • from: source before_v0.60 location
    • to: has already been ported, but not yet deleted from before_v0.60
    • null : hasn't been ported yet
    • before_v0.60/make_release/this_week_in_nu_weekly.nu
    from: before_v0.60/make_release/this_week_in_nu_weekly.nu
    to: make_release/this_week_in_nu_weekly.nu
    functions:
      do-work: query-week-span
    • before_v0.60/make_release/nu_release.nu
    from: before_v0.60/make_release/nu_release.nu
    to: make_release/nu_release.nu
    • before_v0.60/make_release/gen-js-ext.nu
    from: before_v0.60/make_release/gen-js-ext.nu
    to: make_release/gen-js-ext.nu
    functions:
      gen_keywords: make_release/gen-js-ext.nu:1:gen_keywords
      gen_sub_keywords: make_release/gen-js-ext.nu:20:gen_sub_keywords
    • before_v0.60/cool_oneliners/dict.nu
    from: before_v0.60/cool_oneliners/dict.nu
    to: sourced/cool-oneliners/dict.nu
    functions:
      dict: sourced/cool-oneliners/dict.nu:2:dict
    • before_v0.60/progress_bar/progress_bar_no_back.nu
    from: before_v0.60/progress_bar/progress_bar_no_back.nu
    to: sourced/progress_bar/progress_bar_no_back.nu
    • before_v0.60/progress_bar/percent_meter.nu
    from: before_v0.60/progress_bar/percent_meter.nu
    to: sourced/progress_bar/percent_meter.nu
    functions:
      loading: sourced/progress_bar/percent_meter.nu:1:loading
      show_cursor: sourced/progress_bar/percent_meter.nu:11:show_cursor
      hide_cursor: sourced/progress_bar/percent_meter.nu:15:hide_cursor
    • before_v0.60/progress_bar/progress_bar.nu
    from: before_v0.60/progress_bar/progress_bar.nu
    to: sourced/progress_bar/progress_bar.nu
    • before_v0.60/maths/math_functions.nu
    from: before_v0.60/maths/math_functions.nu
    to: modules/maths/math_functions.nu
    functions:
      root: modules/maths/math_functions.nu:2:root
      croot: modules/maths/math_functions.nu:7:croot
      aroot: modules/maths/math_functions.nu:12:aroot
      delta: modules/maths/math_functions.nu:17:delta
      fact:
      - modules/maths/math_functions.nu:25:fact
      - modules/recursion/fact.nu:5:fact
    • before_v0.60/cool_oneliners/file_cat.nu
    from: before_v0.60/cool_oneliners/file_cat.nu
    to: sourced/cool-oneliners/file_cat.nu
    • before_v0.60/weather/timed_weather_run.nu
    from: before_v0.60/weather/timed_weather_run.nu
    to: modules/weather/timed_weather_run.nu
    functions:
      timed_weather_run: modules/weather/timed_weather_run.nu:1:timed_weather_run
    • before_v0.60/weather/get-weather.nu
    from: before_v0.60/weather/get-weather.nu
    to: modules/weather/get-weather.nu
    functions:
      locations:
      - modules/weather/get-weather.nu:4:locations
      - modules/weather/weatherdark.nu:11:locations
      get_my_location: modules/weather/get-weather.nu:14:get_my_location
      get_location_by_ip: modules/weather/get-weather.nu:44:get_location_by_ip
      get_weather_by_ip: modules/weather/get-weather.nu:56:get_weather_by_ip
      weather_emoji_table: modules/weather/get-weather.nu:146:weather_emoji_table
      get_icon_from_table: modules/weather/get-weather.nu:159:get_icon_from_table
      get_weather:
      - modules/weather/get-weather.nu:164:get_weather
      - modules/weather/weatherdark.nu:70:get_weather
      state_abbrev_lookup: modules/weather/get-weather.nu:217:state_abbrev_lookup
    • before_v0.60/data_extraction/ultimate_extractor.nu
    from: before_v0.60/data_extraction/ultimate_extractor.nu
    to: modules/data_extraction/ultimate_extractor.nu
    functions:
      extract: modules/data_extraction/ultimate_extractor.nu:2:extract
    • before_v0.60/coloring/gradient.nu
    from: before_v0.60/coloring/gradient.nu
    to: benchmarks/gradient.nu
    functions:
      iter_inc:
      - benchmarks/gradient_benchmark_no_check.nu:1:iter_inc
      - benchmarks/gradient-old.nu:1:iter_inc
      - benchmarks/gradient_benchmark.nu:1:iter_inc
    • before_v0.60/coloring/256_color_testpattern.nu
    from: before_v0.60/coloring/256_color_testpattern.nu
    to: modules/coloring/256_color_testpattern.nu
    functions:
      contrast_colour: modules/coloring/256_color_testpattern.nu:1:contrast_colour
      print_colour: modules/coloring/256_color_testpattern.nu:33:print_colour
      print_run: modules/coloring/256_color_testpattern.nu:43:print_run
      print_blocks: modules/coloring/256_color_testpattern.nu:53:print_blocks
    • before_v0.60/coloring/24bit-1.nu
    from: before_v0.60/coloring/24bit-1.nu
    to: modules/coloring/24bit-1.nu
    functions:
      build-colorstr: modules/coloring/24bit-1.nu:18:build-colorstr
      log: DELETED
    • before_v0.60/git/git_branch_cleanup.nu
    from: before_v0.60/git/git_branch_cleanup.nu
    to: modules/git/git_branch_cleanup.nu
    • before_v0.60/make_release/this_week_in_nu_release.nu
    from: before_v0.60/make_release/this_week_in_nu_release.nu
    to: null
    functions:
      do-work: null
    • before_v0.60/make_release/gen-ts-ext.nu
    from: before_v0.60/make_release/gen-ts-ext.nu
    to: null
    functions:
      gen-ts-cmds-begin: null
      gen-ts-cmds: null
      gen-ts-subs: null
      log:
      - sourced/misc/table_grouping.nu:1:log
      - modules/background_task/task.nu:8:log
    • before_v0.60/nu_101/demo.nu
    from: before_v0.60/nu_101/demo.nu
    to: sourced/nu_101/demo.nu
    functions:
      my-ls: sourced/nu_101/demo.nu:1:my-ls
    • before_v0.60/ls_mods/ls-hidden.nu
    from: before_v0.60/ls_mods/ls-hidden.nu
    to: null
    functions:
      ls-hidden: null
    • before_v0.60/ls_mods/ls-wide.nu
    from: before_v0.60/ls_mods/ls-wide.nu
    to: null
    functions:
      ls-wide: null
      run_ls: null
      log:
      - sourced/misc/table_grouping.nu:1:log
      - modules/background_task/task.nu:8:log
    • before_v0.60/ls_mods/ls-wide-with-color.nu
    from: before_v0.60/ls_mods/ls-wide-with-color.nu
    to: null
    functions:
      ls-wide2: null
      colorize: null
      colorit: null
      log:
      - sourced/misc/table_grouping.nu:1:log
      - modules/background_task/task.nu:8:log
    • before_v0.60/ls_mods/ls-less.nu
    from: before_v0.60/ls_mods/ls-less.nu
    to: null
    functions:
      ls-less: null
    • before_v0.60/cool_oneliners/parse_aws_s3_ls.nu
    from: before_v0.60/cool_oneliners/parse_aws_s3_ls.nu
    to: null
    • before_v0.60/cool_oneliners/filesize.nu
    from: before_v0.60/cool_oneliners/filesize.nu
    to: null
    • before_v0.60/cool_oneliners/npm_update_versions.nu
    from: before_v0.60/cool_oneliners/npm_update_versions.nu
    to: null
    • before_v0.60/cool_oneliners/xml_search_schema.nu
    from: before_v0.60/cool_oneliners/xml_search_schema.nu
    to: null
    • before_v0.60/cool_oneliners/cdpath-implementation.nu
    from: before_v0.60/cool_oneliners/cdpath-implementation.nu
    to: null
    functions:
      c: null
    • before_v0.60/cool_oneliners/js_map_to_markdown.nu
    from: before_v0.60/cool_oneliners/js_map_to_markdown.nu
    to: null
    • before_v0.60/fuzzy/fuzzy_history_search.nu
    from: before_v0.60/fuzzy/fuzzy_history_search.nu
    to: null
    functions:
      fuzzy-history-search: null
    • before_v0.60/fuzzy/fuzzy_command_search.nu
    from: before_v0.60/fuzzy/fuzzy_command_search.nu
    to: null
    functions:
      pad-tabs: null
      fuzzy-command-search: null
    • before_v0.60/make_readme_table.nu
    from: before_v0.60/make_readme_table.nu
    to: null
    • before_v0.60/language/std/date.nu
    from: before_v0.60/language/std/date.nu
    to: custom-completions/auto-generate/completions/date.nu
    functions:
      mock-now: null
      people: null
    • before_v0.60/tests/main.nu
    from: before_v0.60/tests/main.nu
    to: null
    • before_v0.60/fun/star.nu
    from: before_v0.60/fun/star.nu
    to: null
    • before_v0.60/fun/spark.nu
    from: before_v0.60/fun/spark.nu
    to: sourced/fun/spark.nu
    functions:
      spark: sourced/fun/spark.nu:1:spark
    • before_v0.60/fun/life.nu
    from: before_v0.60/fun/life.nu
    to: null
    functions:
      alive: null
      generation: null
      print-grid: null
    • before_v0.60/fun/lisp_mode.nu
    from: before_v0.60/fun/lisp_mode.nu
    to: null
    functions:
      +: null
      '-': null
      '*': null
      /: null
      in: null
      not-in: null
      <: null
      <=: null
      '>': null
      '>=': null
      ==: null
      '!=': null
      =~: null
      '!~': null
      array: null
    • before_v0.60/fun/nyancat.nu
    from: before_v0.60/fun/nyancat.nu
    to: null
    • before_v0.60/language/playground.nu
    from: before_v0.60/language/playground.nu
    to: null
    • before_v0.60/language/playground/lib.nu
    from: before_v0.60/language/playground/lib.nu
    to: null
    functions:
      playground: null
      scene: null
      play: null
      expect: null
    • before_v0.60/language/std.nu
    from: before_v0.60/language/std.nu
    to: null
    • before_v0.60/virtual_environments/venv_deactivate.nu
    from: before_v0.60/virtual_environments/venv_deactivate.nu
    to: null
    • before_v0.60/virtual_environments/conda_deactivate.nu
    from: before_v0.60/virtual_environments/conda_deactivate.nu
    to: null
    • before_v0.60/virtual_environments/venv.nu
    from: before_v0.60/virtual_environments/venv.nu
    to: null
    functions:
      venv: null
      venv-path-unix: null
      venv-path-windows: null
      windows?:
      - modules/virtual_environments/conda.nu:1:windows?
      - modules/virtual_environments/nu_conda_2/conda.nu:1:windows?
      path-sep: null
    • before_v0.60/virtual_environments/conda.nu
    from: before_v0.60/virtual_environments/conda.nu
    to:
    - custom-completions/auto-generate/completions/conda.nu
    - modules/virtual_environments/conda.nu
    - modules/virtual_environments/nu_conda_2/conda.nu
    functions:
      conda-env: null
      conda-create-path-windows:
      - modules/virtual_environments/conda.nu:1:conda-create-path-windows
      - modules/virtual_environments/nu_conda_2/conda.nu:1:conda-create-path-windows
      conda-create-path-unix:
      - modules/virtual_environments/conda.nu:1:conda-create-path-unix
      - modules/virtual_environments/nu_conda_2/conda.nu:1:conda-create-path-unix
      windows?:
      - modules/virtual_environments/conda.nu:1:windows?
      - modules/virtual_environments/nu_conda_2/conda.nu:1:windows?
      path-sep: null
    • before_v0.60/stdlib_candidate/get-row.nu
    from: before_v0.60/stdlib_candidate/get-row.nu
    to: null
    functions:
      get-row: null
    • before_v0.60/stdlib_candidate/flatter.nu
    from: before_v0.60/stdlib_candidate/flatter.nu
    to: null
    functions:
      flatter: null
    • before_v0.60/stdlib_candidate/get-column.nu
    from: before_v0.60/stdlib_candidate/get-column.nu
    to: null
    functions:
      get-col: null
      get-column: null
    • before_v0.60/stdlib_candidate/get-latest-release-linux.nu
    from: before_v0.60/stdlib_candidate/get-latest-release-linux.nu
    to: null
    functions:
      get-latest-linux: null
    • before_v0.60/stdlib_candidate/logging.nu
    from: before_v0.60/stdlib_candidate/logging.nu
    to: null
    functions:
      log:
      - modules/background_task/task.nu:8:log
      - sourced/misc/table_grouping.nu:1:log
    • before_v0.60/stdlib_candidate/print.nu
    from: before_v0.60/stdlib_candidate/print.nu
    to: null
    functions:
      print: null
      print2: null
      print3: null
    • before_v0.60/stdlib_candidate/nu_style.nu
    from: before_v0.60/stdlib_candidate/nu_style.nu
    to: null
    functions:
      format_hyperlink: null
      fg_from_rgb: null
      bg_from_rgb: null
      fg_from_index: null
      bg_from_index: null
    • before_v0.60/lint_directories.nu
    from: before_v0.60/lint_directories.nu
    to: null
    functions:
      ls-incorrect-dirs: null
    • before_v0.60/bin-utils.nu
    from: before_v0.60/bin-utils.nu
    to: null
    • before_v0.60/prompt/git_status_prompt.nu
    from: before_v0.60/prompt/git_status_prompt.nu
    to: null
    functions:
      git-status-prompt: null
      prompt-pwd: null
      git-prompt-map: null
      git-prompt-icons: null
      git-branch-icon: null
    • before_v0.60/prompt/left_and_right_prompt.nu
    from: before_v0.60/prompt/left_and_right_prompt.nu
    to: null
    functions:
      construct_prompt: null
      home_abbrev:
      - modules/prompt/oh-my.nu:1:home_abbrev
      - modules/prompt/oh-my-minimal.nu:1:home_abbrev
      - modules/prompt/oh-my-v2.nu:1:home_abbrev
      git_br: null
      set_title_str: null
      get_abbrev_pwd_win: null
      get_abbrev_pwd_lin: null
      set_title: null
      create_second_line: null
    • before_v0.60/config_management/separate_startup/startup.nu
    from: before_v0.60/config_management/separate_startup/startup.nu
    to: null
    functions:
      '"startup"': null
    • before_v0.60/examples/netstat.nu
    from: before_v0.60/examples/netstat.nu
    to: null
    • before_v0.60/examples/date_in_local_timezones.nu
    from: before_v0.60/examples/date_in_local_timezones.nu
    to: null
    functions:
      say: null
    • before_v0.60/lib/scripts.nu
    from: before_v0.60/lib/scripts.nu
    to: null
    • before_v0.60/nu_101/inner_outer_loop.nu
    from: before_v0.60/nu_101/inner_outer_loop.nu
    to: null
    • before_v0.60/nu_101/nothing.nu
    from: before_v0.60/nu_101/nothing.nu
    to: null
    functions:
      nada: null
      nada2: null
    • before_v0.60/parsing/sample_andres.nu
    from: before_v0.60/parsing/sample_andres.nu
    to: null
    functions:
      look_for: null
    • before_v0.60/coloring/python_index_table.nu
    from: before_v0.60/coloring/python_index_table.nu
    to: null
    • before_v0.60/coloring/color_tables.nu
    from: before_v0.60/coloring/color_tables.nu
    to: null
    • before_v0.60/coloring/ref_table.nu
    from: before_v0.60/coloring/ref_table.nu
    to: null
    • before_v0.60/coloring/sample.nu
    from: before_v0.60/coloring/sample.nu
    to: null
    • before_v0.60/coloring/nu_index_fg2.nu
    from: before_v0.60/coloring/nu_index_fg2.nu
    to: null
    functions:
      show_index_colors: null
    • before_v0.60/coloring/color_table.nu
    from: before_v0.60/coloring/color_table.nu
    to: null
    functions:
      make_header: null
      mk_header: null
      color_row_range: null
      create_color_tables: null
      color_table: null
    • before_v0.60/coloring/short_list.nu
    from: before_v0.60/coloring/short_list.nu
    to: null
    • before_v0.60/coloring/nu_index_bg.nu
    from: before_v0.60/coloring/nu_index_bg.nu
    to: null
    functions:
      show_index_colors: null
    • before_v0.60/coloring/nu_index_fg.nu
    from: before_v0.60/coloring/nu_index_fg.nu
    to: null
    functions:
      show_index_colors: null
    • before_v0.60/webscraping/scraping.nu
    from: before_v0.60/webscraping/scraping.nu
    to: null
    • before_v0.60/assets/core_team.nu
    from: before_v0.60/assets/core_team.nu
    to: null
    • before_v0.60/duplicates/duplicates.nu
    from: before_v0.60/duplicates/duplicates.nu
    to: null
    functions:
      duplicates: null
    • before_v0.60/duplicates/example.nu
    from: before_v0.60/duplicates/example.nu
    to: null
    • before_v0.60/fehbg.nu
    from: before_v0.60/fehbg.nu
    to: sourced/fehbg.nu
    functions:
      select_random: null
      list_images: null
      caption: sourced/fehbg.nu:1:caption
      draw_str: null
    • before_v0.60/git/git_branch_age.nu
    from: before_v0.60/git/git_branch_age.nu
    to: null
    • before_v0.60/maintainer_time.nu
    from: before_v0.60/maintainer_time.nu
    to: null
    • before_v0.60/with_externals/loc.nu
    from: before_v0.60/with_externals/loc.nu
    to: null
    functions:
      '"loc"': null
  5. Kissaki commented on Apr 19, 2025

    @Kissaki
    Contributor

    Through #1086, the before_v0.60 folder no longer exists, and this ticket should be closed as complete.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issuehelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions