(q)
| 147 | } |
| 148 | }; |
| 149 | const confirm = async (q) => { |
| 150 | // If run like bun cli.js ~/Downloads/config.json |
| 151 | if (PROFILE_PATH_CLI) { |
| 152 | return true; |
| 153 | } |
| 154 | return await inquirer |
| 155 | .prompt([ |
| 156 | { |
| 157 | type: "confirm", |
| 158 | name: "conf", |
| 159 | message: q, |
| 160 | }, |
| 161 | ]) |
| 162 | .then((a) => a.conf); |
| 163 | }; |
| 164 | |
| 165 | // TODO: Positional ags: |
| 166 | /* |