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

refactor!: v0.3 API changes #1108

Merged
merged 1 commit into from
May 30, 2024
Merged

refactor!: v0.3 API changes #1108

merged 1 commit into from
May 30, 2024

Conversation

sxyazi
Copy link
Owner

@sxyazi sxyazi commented May 30, 2024

success and code are now properties instead of methods of Status

local status = Command("ls"):spawn():wait()
- ya.err("success:", status:success(), "code:", status:code())
+ ya.err("success:", status.success, "code:", status.code)

Renamed is_block_device, is_char_device, and is_socket of Cha

  • is_block_device => is_block
  • is_char_device => is_char
  • is_socket => is_sock

@sxyazi sxyazi merged commit 95e960a into main May 30, 2024
6 checks passed
@sxyazi sxyazi deleted the pr-2a864aab branch May 30, 2024 17:09
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 30, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant