-
Notifications
You must be signed in to change notification settings - Fork 86
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
feat: restrict value type for builtin functions (cd
, mv
) to be of type Text
#400
feat: restrict value type for builtin functions (cd
, mv
) to be of type Text
#400
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you do the same for mv
as well? Besides that - looking good
This PR also includes the restriction for |
Yes I mean the restriction. But for details - look in the comment. There is some other API that I suggested |
Oh hang on. The commend disappeared. Let me retype it |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@MuhamedMagdi sorry for making confusions. Here is the suggestion that I forgot to mention.
(And could you please apply the same new API to the mv command?)
@MuhamedMagdi don't worry about failing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
… type `Text` (amber-lang#400) * feat: restrict value type for builtin functions to be of type `Text` * refactor: use the new `Expr` position api
This update ensures that the arguments passed to the
cd
andmv
commands are of typeText
.closes #369