mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-07 13:45:42 +00:00
Update cheatsheets
This commit is contained in:
33
stack
Normal file
33
stack
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# stack
|
||||
|
||||
> Manage Haskell projects.
|
||||
> More information: <https://github.com/commercialhaskell/stack>.
|
||||
|
||||
- Create a new package:
|
||||
|
||||
`stack new {{package}} {{template}}`
|
||||
|
||||
- Compile a package:
|
||||
|
||||
`stack build`
|
||||
|
||||
- Run tests inside a package:
|
||||
|
||||
`stack test`
|
||||
|
||||
- Compile a project and re-compile every time a file changes:
|
||||
|
||||
`stack build --file-watch`
|
||||
|
||||
- Compile a project and execute a command after compilation:
|
||||
|
||||
`stack build --exec "{{command}}"`
|
||||
|
||||
- Run a program and pass an argument to it:
|
||||
|
||||
`stack exec {{program}} -- {{argument}}`
|
||||
Reference in New Issue
Block a user