@@ -40,57 +40,57 @@ return function (Skeletor $skeletor) {
4040#### Text Input
4141
4242``` php
43- $text = $ skeletor->text('Enter your name:', 'John Doe');
43+ $skeletor->text('Enter your name:', 'John Doe');
4444```
4545
4646#### Textarea Input
4747
4848``` php
49- $description = $ skeletor->textarea('Enter a description:');
49+ $skeletor->textarea('Enter a description:');
5050```
5151
5252#### Password Input
5353
5454``` php
55- $password = $ skeletor->password('Enter your password:');
55+ $skeletor->password('Enter your password:');
5656```
5757
5858#### Confirm
5959
6060``` php
61- $confirmed = $ skeletor->confirm('Do you agree?', true);
61+ $skeletor->confirm('Do you agree?', true);
6262```
6363
6464#### Select
6565
6666``` php
67- $choice = $ skeletor->select('Choose an option:', ['Option 1', 'Option 2', 'Option 3']);
67+ $skeletor->select('Choose an option:', ['Option 1', 'Option 2', 'Option 3']);
6868```
6969
7070#### Multiselect
7171
7272``` php
73- $choices = $ skeletor->multiselect('Choose multiple options:', ['Option 1', 'Option 2', 'Option 3']);
73+ $skeletor->multiselect('Choose multiple options:', ['Option 1', 'Option 2', 'Option 3']);
7474```
7575
7676#### Suggest
7777
7878``` php
79- $suggestion = $ skeletor->suggest('Start typing:', ['Suggestion 1', 'Suggestion 2', 'Suggestion 3']);
79+ $skeletor->suggest('Start typing:', ['Suggestion 1', 'Suggestion 2', 'Suggestion 3']);
8080```
8181
8282#### Search
8383
8484``` php
85- $searchResult = $ skeletor->search('Search for an option:', function ($query) {
85+ $skeletor->search('Search for an option:', function ($query) {
8686 return ['Result 1', 'Result 2', 'Result 3'];
8787});
8888```
8989
9090#### Multisearch
9191
9292``` php
93- $searchResults = $ skeletor->multisearch('Search for multiple options:', function ($query) {
93+ $skeletor->multisearch('Search for multiple options:', function ($query) {
9494 return ['Result 1', 'Result 2', 'Result 3'];
9595});
9696```
@@ -100,7 +100,7 @@ $searchResults = $skeletor->multisearch('Search for multiple options:', function
100100#### Spinner
101101
102102``` php
103- $result = $ skeletor->spin('Processing...', function () {
103+ $skeletor->spin('Processing...', function () {
104104 // long running task
105105 return true;
106106});
@@ -109,7 +109,7 @@ $result = $skeletor->spin('Processing...', function () {
109109#### Progress Bar
110110
111111``` php
112- $progress = $ skeletor->progress('Processing items...', 100, function ($progress) {
112+ $skeletor->progress('Processing items...', 100, function ($progress) {
113113 for ($i = 0; $i < 100; $i++) {
114114 $progress->advance();
115115 }
@@ -137,43 +137,43 @@ $skeletor->outro('Setup complete.');
137137#### Reading a File
138138
139139``` php
140- $content = $ skeletor->readFile('path/to/file.txt');
140+ $skeletor->readFile('path/to/file.txt');
141141```
142142
143143#### Writing to a File
144144
145145``` php
146- $bytesWritten = $ skeletor->writeFile('path/to/file.txt', 'New content');
146+ $skeletor->writeFile('path/to/file.txt', 'New content');
147147```
148148
149149#### Removing a File
150150
151151``` php
152- $success = $ skeletor->removeFile('path/to/file.txt');
152+ $skeletor->removeFile('path/to/file.txt');
153153```
154154
155155#### Removing a Directory
156156
157157``` php
158- $success = $ skeletor->removeDirectory('path/to/directory');
158+ $skeletor->removeDirectory('path/to/directory');
159159```
160160
161161#### Checking if a File Exists
162162
163163``` php
164- $exists = $ skeletor->exists('path/to/file.txt');
164+ $skeletor->exists('path/to/file.txt');
165165```
166166
167167#### Updating composer.json
168168
169169``` php
170- $bytesWritten = $ skeletor->updateComposerJson(['require' => ['new/package' => '^1.0']]);
170+ $skeletor->updateComposerJson(['require' => ['new/package' => '^1.0']]);
171171```
172172
173173#### Executing a Command
174174
175175``` php
176- $process = $ skeletor->exec(['ls', '-la']);
176+ $skeletor->exec(['ls', '-la']);
177177```
178178
179179#### Table
@@ -191,11 +191,11 @@ $skeletor->pause(5);
191191#### Replace In File
192192
193193``` php
194- $replacements = $ skeletor->replaceInFile('path/to/file.txt', 'search string', 'replace string');
194+ $skeletor->replaceInFile('path/to/file.txt', 'search string', 'replace string');
195195```
196196
197197#### Preg Replace In File
198198
199199``` php
200- $replacements = $ skeletor->pregReplaceInFile('path/to/file.txt', '/pattern/', 'replace string');
200+ $skeletor->pregReplaceInFile('path/to/file.txt', '/pattern/', 'replace string');
201201```
0 commit comments