Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port before_v0.60/math, before_v0.60/parsing and before_v0.60/git #844

Merged
merged 6 commits into from
May 25, 2024

Conversation

39555
Copy link
Contributor

@39555 39555 commented May 25, 2024

This PR is part of porting all old scripts #221 and includes a set of small modules:

  • math
  • parsing
  • git

39555 added 6 commits May 25, 2024 17:26
This script has already been ported to `modules/math/math_functions.nu`
This script has already been ported to `modules/git/git_branch_cleanup.nu`
- `str substring 2,` -> `str substring 2..`
- implicit `$it` -> `$in` in the `each` closure
- add `export` keyword
- `str to-datetime` -> `into datetime`
- `each --numbered` -> `enumerate | each`
- implicit `$it` -> `$in`
- another `flatten` for flattening the `comp` column and make `idx` and `loc` columns top level
- implicit `$it` in `update` -> `$in`
- `to json --pretty` -> `to json --indent`
- explicit `print`
@fdncred fdncred merged commit 15cb717 into nushell:main May 25, 2024
1 check failed
@fdncred
Copy link
Collaborator

fdncred commented May 25, 2024

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants