Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
47cd43c
Add io lib
May 17, 2019
908cec3
io cleanup
May 21, 2019
0415dd1
Merge branch 'master' into features/io
jclem May 21, 2019
b0a5f41
Run format script
jclem May 21, 2019
bc520a8
Fix lint errors with autofix
jclem May 21, 2019
dedef5e
Fix equality lint errors
jclem May 21, 2019
6b006bf
Rename ioUtil to io-util
jclem May 21, 2019
77b80f8
Add no-import-requires
jclem May 21, 2019
064ea85
Merge branch 'master' into features/io
jclem May 21, 2019
aaf90f9
Run auto-fix lint
jclem May 21, 2019
0d2ce4f
Remove lint errors
jclem May 21, 2019
122e1de
Use Boolean() to convert options
jclem May 21, 2019
04cfb1e
Rewrite packages/io to be fully async
jclem May 21, 2019
e566c89
Move IS_WINDOWS into ioUtil
jclem May 21, 2019
04be602
DRY up cp/mv by moving shared code into move function
jclem May 21, 2019
86228a8
Merge pull request #7 from actions/features/io-patch-jclem
May 22, 2019
42a06ee
Remove unc support, change isDirectory call to stat
May 22, 2019
34b510f
Tighter try catches
May 22, 2019
b9d5ac5
more concise extensions search
May 22, 2019
3c3cc1e
Allow isDirectory to be stat or lstat
May 22, 2019
a27177f
format
May 22, 2019
8f69c22
Shell out to rm -rf
May 22, 2019
d8d83c9
Remove unc comment
May 22, 2019
2c1f4eb
Export fs.promises from io-util
jclem May 22, 2019
bf9650a
Remove unknown error message
May 22, 2019
8d79fd8
Create an optimistic mkdirp
jclem May 22, 2019
9d54614
Merge branch 'features/io' into features/io-optimistic-mkdirp
jclem May 22, 2019
d19a10b
Update io-util.ts
jclem May 22, 2019
9c3517b
Update io-util.ts
jclem May 22, 2019
d73dd75
Update io.test.ts
jclem May 22, 2019
acb4428
Fix tests for mkdirP
jclem May 22, 2019
60a8dfb
Merge pull request #9 from actions/features/io-optimistic-mkdirp
May 22, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@
"@typescript-eslint/no-array-constructor": "error",
"@typescript-eslint/no-empty-interface": "error",
"@typescript-eslint/no-explicit-any": "error",
"no-extra-parens": "off",
"@typescript-eslint/no-extra-parens": "error",
"@typescript-eslint/no-extraneous-class": "error",
"@typescript-eslint/no-for-in-array": "error",
"@typescript-eslint/no-inferrable-types": "error",
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules/
packages/*/node_modules/
packages/*/lib/
packages/*/lib/
packages/*/__tests__/_temp/
49 changes: 49 additions & 0 deletions packages/io/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# `@actions/io`

> Core functions for cli filesystem scenarios

## Usage

```
/**
* Copies a file or folder.
*
* @param source source path
* @param dest destination path
* @param options optional. See CopyOptions.
*/
export function cp(source: string, dest: string, options?: CopyOptions): Promise<void>

/**
* Remove a path recursively with force
*
* @param path path to remove
*/
export function rmRF(path: string): Promise<void>

/**
* Make a directory. Creates the full path with folders in between
*
* @param p path to create
* @returns Promise<void>
*/
export function mkdirP(p: string): Promise<void>

/**
* Moves a path.
*
* @param source source path
* @param dest destination path
* @param options optional. See CopyOptions.
*/
export function mv(source: string, dest: string, options?: CopyOptions): Promise<void>

/**
* Returns path of a tool had the tool actually been invoked. Resolves via paths.
*
* @param tool name of the tool
* @param options optional. See WhichOptions.
* @returns Promise<string> path to tool
*/
export function which(tool: string, options?: WhichOptions): Promise<string>
```
Loading