File tree Expand file tree Collapse file tree 2 files changed +16
-4
lines changed Expand file tree Collapse file tree 2 files changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -64,15 +64,16 @@ async function main() {
6464 } ) ;
6565
6666 const site = program
67- . command ( 'site' ) ;
67+ . command ( 'site' )
68+ . description ( 'Site management commands' ) ;
6869
6970 site
7071 . command ( 'deploy' )
7172 . description ( 'Deploy a local web project to Puter' )
7273 . argument ( '<local_dir>' , 'Local directory path' )
73- . option ( '--subdomain <subdomain>', 'Subdomain for the site' )
74- . action ( async ( local_dir , options ) => {
75- await startShell ( `site:deploy ${ local_dir } ${ options . subdomain ? ` --subdomain=${ options . subdomain } ` : '' } ` )
74+ . argument ( '[ <subdomain>] ', 'Deployment subdomain (<subdomain>.puter. site) ' )
75+ . action ( async ( local_dir , subdomain ) => {
76+ await startShell ( `site:deploy ${ local_dir } ${ subdomain ? ` --subdomain=${ subdomain } ` : '' } ` )
7677 process . exit ( 0 ) ;
7778 } ) ;
7879
Original file line number Diff line number Diff line change 1+ <!DOCTYPE html>
2+ < html lang ="en ">
3+ < head >
4+ < meta charset ="UTF-8 " />
5+ < meta name ="viewport " content ="width=device-width, initial-scale=1.0 " />
6+ < title > hehe</ title >
7+ </ head >
8+ < body >
9+ < h1 > hehe</ h1 >
10+ </ body >
11+ </ html >
You can’t perform that action at this time.
0 commit comments