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

What are the functions I want to see in the standard library #26

Closed
egorsmkv opened this issue Mar 12, 2015 · 2 comments
Closed

What are the functions I want to see in the standard library #26

egorsmkv opened this issue Mar 12, 2015 · 2 comments

Comments

@egorsmkv
Copy link
Contributor

Here I propose to speak about all the standard features that will be included in Bish. It is desirable to describe the functions that are used very often in scripting.

My suggestions:
abort - display a message if something went wrong

# example
def abort(m) {
    println(m);
    @(exit 1);
}

Beauty can add the selected message in red.

chmod - establish certain rights to the file / folder
read - receiving data from a user
glob - retrieving files by mask

@tdenniston
Copy link
Owner

Abort is a good one. I still haven't decided if the standard library should contain bish wrappers around many bash commands. In other words, I'm not sure it makes sense to have a chmod bish function when the user can just execute @(chmod) directly.

@egorsmkv
Copy link
Contributor Author

@tdenniston Need to make sure that they return an error if the operation is not possible. It is necessary to shift from implicit user scripting problems on the tongue.

@egorsmkv egorsmkv closed this as completed May 8, 2016
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

No branches or pull requests

2 participants