Skip to content

API Roadmap #96

@joshgoebel

Description

@joshgoebel

A thread to track the overall API roadmap for the CLI.

IO

Directory

  • create
  • remove
  • exists
  • list

File

  • static create(path)
  • static create(path,fn)
  • static delete(path)
  • static exists(path)
  • static open(path)
  • static open(path,fn)
  • static openWithFlags(path, flags)
  • static openWithFlags(path, flags, fn)
  • static read(path)
  • static realPath(path)
  • size(path)
  • close()
  • size()
  • stat()
  • readBytes(count)
  • readBytes(count,offset)
  • writeBytes(bytes)
  • writeBytes(bytes, offset)

FileFlags

  • static readOnly { 0x01 }
  • static writeOnly { 0x02 }
  • static readWrite { 0x04 }
  • static sync { 0x08 }
  • static create { 0x10 }
  • static truncate { 0x20 }
  • static exclusive { 0x40 }

Stat

  • static path(path
  • blockCount
  • blockSize
  • device -> isDevice
  • group
  • inode
  • linkCount
  • mode
  • size
  • specialDevice -> isSpecialDevice
  • user
  • isFile
  • isDirectory

Stdin

Stdout

  • flush

OS

Platform

Process

Scheduler

  • static add(callable)
  • runNextScheduled_(fiber) - not really private cause we call it everwhere

Timer

  • sleep -> Scheduler.sleep ???

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions