File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed
Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 9595 {
9696 "repository" : " vitejs/vite" ,
9797 "commit" : " 98d9a33274d9ac90780786afa612d916feddf2e3"
98+ },
99+ {
100+ "repository" : " formio/angular" ,
101+ "commit" : " 865f42d7229d19a86cc7151cf2cb3c66880dedb5" ,
102+ "glob" : " ."
98103 }
99104]
Original file line number Diff line number Diff line change 11import process from "node:process" ;
22import * as readline from "node:readline/promises" ;
3+ import { outdent } from "outdent" ;
34import { getRepositoryCommitHash , updatedRepositories } from "./utilities.mjs" ;
45
56const GITHUB_DOMAIN = "https://github.com/" ;
@@ -10,7 +11,12 @@ async function addProject() {
1011 output : process . stdout ,
1112 } ) ;
1213 let input = await rl . question (
13- "Which repository are you going to add? Example: prettier/prettier\n" ,
14+ outdent `
15+ Which repository are you going to add?
16+ Example:
17+ - prettier/prettier
18+ - https://github.com/prettier/prettier\n
19+ ` ,
1420 ) ;
1521
1622 let repository = input . trim ( ) ;
@@ -34,7 +40,7 @@ async function addProject() {
3440
3541 const commit = await getRepositoryCommitHash ( repository ) ;
3642 return [
37- repositories ,
43+ ... repositories ,
3844 {
3945 repository,
4046 commit,
You can’t perform that action at this time.
0 commit comments