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
{{ message }}
Repository navigation
Commit 89c8be8
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: lab.md
+5-2Lines changed: 5 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,10 @@ In this practice lab, you will build a command line tool that lists files in a d
10
10
11
11
**Steps:**
12
12
13
-
1. Create a new repository in your account for your Python project. Use the [Python template repository](https://github.com/alfredodeza/python-cli-example) to quickly generate one for your own account. Use this link to [create it in one step](https://github.com/alfredodeza/python-cli-example/generate).
13
+
For an easy setup with all dependencies installed and a pre-configured `virtualenv`, [open the repository with Codespaces](https://codespaces.new/alfredodeza/python-cli-example?quickstart=1)
14
+
15
+
Alternate setup: Create a new repository in your account for your Python project. Use the [Python template repository](https://github.com/alfredodeza/python-cli-example/) to quickly generate one for your own account. Use this link to [create it in one step](https://github.com/alfredodeza/python-cli-example/generate).
16
+
14
17
1. Use the Click framework to handle arguments and options. Refer to the [framework example](./examples/framework.py) in this repository as a guide
15
18
1. Use the `os.listdir()` module to list files in a directory:
16
19
@@ -29,4 +32,4 @@ In this practice lab, you will build a command line tool that lists files in a d
29
32
- [x] Using a framework like Click to create a command line tool
30
33
- [x] Using pure Python to list files in a directory
31
34
32
-
By completing this lab, you have demonstrated that you can create a command line tool using Python. You can use this tool to list files in a directory, and you can extend it to add more functionality.
35
+
By completing this lab, you have demonstrated that you can create a command line tool using Python. You can use this tool to list files in a directory, and you can extend it to add more functionality.
0 commit comments