You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my scripts I would like to be able to obtain current user's name and group. Go's stdlib has a package os/user which provides the necessary functionality and Risor module could be based on. I am proposing to add the following new functions to the os module:
current_user() user
lookup_user(name) user
lookup_uid(uid) user
lookup_group(name) group
lookup_gid(gid) group
With this change, I would also like to extend the OS interface so that their implementation can be changed by a custom OS implementation, similarly how it's already done for other functions in Risor's os module:
In my scripts I would like to be able to obtain current user's name and group. Go's stdlib has a package
os/user
which provides the necessary functionality and Risor module could be based on. I am proposing to add the following new functions to theos
module:current_user() user
lookup_user(name) user
lookup_uid(uid) user
lookup_group(name) group
lookup_gid(gid) group
With this change, I would also like to extend the OS interface so that their implementation can be changed by a custom OS implementation, similarly how it's already done for other functions in Risor's
os
module:If this is agreeable, @myzie, I would like to take a shot at it.
The text was updated successfully, but these errors were encountered: