mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-10 12:58:16 +00:00
Update cheatsheets
This commit is contained in:
33
swift
Normal file
33
swift
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# swift
|
||||
|
||||
> Create, run and build Swift projects.
|
||||
> More information: <https://swift.org>.
|
||||
|
||||
- Start a REPL (interactive shell):
|
||||
|
||||
`swift`
|
||||
|
||||
- Execute a program:
|
||||
|
||||
`swift {{file.swift}}`
|
||||
|
||||
- Start a new project with the package manager:
|
||||
|
||||
`swift package init`
|
||||
|
||||
- Generate an Xcode project file:
|
||||
|
||||
`swift package generate-xcodeproj`
|
||||
|
||||
- Update dependencies:
|
||||
|
||||
`swift package update`
|
||||
|
||||
- Compile project for release:
|
||||
|
||||
`swift build -c release`
|
||||
Reference in New Issue
Block a user