You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[content improvements] update cli and library getting started guides (#357)
motivation: finalize the getting started guides
changes:
* use default bash prompt
* update url + name of example library used in cli guide
* fix small typos
---------
Co-authored-by: Alexander Sandberg <[email protected]>
Copy file name to clipboardExpand all lines: getting-started/cli-swiftpm/index.md
+12-12Lines changed: 12 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -13,9 +13,9 @@ Let’s write a small application with our new Swift development environment.
13
13
To start, we’ll use SwiftPM to make a new project for us. In your terminal of choice run:
14
14
15
15
~~~bash
16
-
❯ mkdir MyCLI
17
-
❯cd MyCLI
18
-
❯ swift package init --name MyCLI --type executable
16
+
$ mkdir MyCLI
17
+
$cd MyCLI
18
+
$ swift package init --name MyCLI --type executable
19
19
~~~
20
20
21
21
This will generate a new directory called MyCLI with the following files:
@@ -42,7 +42,7 @@ In fact, SwiftPM generated a "Hello, world!" project for us, including some unit
42
42
We can run the tests by running `swift test` in our terminal.
43
43
44
44
~~~bash
45
-
❯ swift test
45
+
$ swift test
46
46
Building for debugging...
47
47
[6/6] Linking MyCLIPackageTests
48
48
Build complete! (16.53s)
@@ -62,7 +62,7 @@ Test Suite 'All tests' passed at 2023-01-12 13:38:22.398.
62
62
We can also run the program by running `swift run` in our terminal.
63
63
64
64
~~~bash
65
-
❯ swift run MyCLI
65
+
$ swift run MyCLI
66
66
[3/3] Linking MyCLI
67
67
Hello, World!
68
68
~~~
@@ -71,7 +71,7 @@ Hello, World!
71
71
72
72
Swift based applications are usually composed from libraries that provide useful functionality.
73
73
74
-
In this project, we’ll use a package called [swift-figlet](https://github.com/tomerd/swift-figlet) which will help us make ASCII art.
74
+
In this project, we’ll use a package called [example-package-figlet](https://github.com/apple/example-package-figlet) which will help us make ASCII art.
75
75
76
76
You can find more interesting libraries on [Swift Package Index](https://swiftpackageindex.com) -- the unofficial package index for Swift.
0 commit comments