59 lines
1.9 KiB
HTML
59 lines
1.9 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Bash Argument Parser Generator</title>
|
|
<link rel="stylesheet" href="/static/css/style.css">
|
|
</head>
|
|
|
|
<body>
|
|
<div class="container">
|
|
<header>
|
|
<h1>Bash Argument Parser Generator</h1>
|
|
</header>
|
|
|
|
<section class="input-section">
|
|
<div class="header-input">
|
|
<label for="custom-header">Custom Header / Greeting</label>
|
|
<input type="text" id="custom-header" placeholder="e.g., My Script v1.0 - Does amazing things">
|
|
</div>
|
|
|
|
<div class="arguments-section">
|
|
<h2>Arguments</h2>
|
|
<div class="argument-header">
|
|
<span class="col-params">Parameters</span>
|
|
<span class="col-command">Variable Name</span>
|
|
<span class="col-help">Help Text</span>
|
|
<span class="col-actions"></span>
|
|
</div>
|
|
<div id="arguments-container">
|
|
<!-- Arguments will be dynamically added here -->
|
|
</div>
|
|
</div>
|
|
|
|
<button id="generate-btn" class="generate-btn">Generate BASH</button>
|
|
</section>
|
|
|
|
<section class="output-section" id="output-section" style="display: none;">
|
|
<h2>Generated Script</h2>
|
|
<div class="code-container">
|
|
<button class="copy-btn" id="copy-btn">Copy</button>
|
|
<pre><code id="generated-code"></code></pre>
|
|
</div>
|
|
</section>
|
|
|
|
<section class="help-section">
|
|
<h2>Help Output Preview</h2>
|
|
<div class="help-preview" id="help-preview">
|
|
<pre id="help-content">Add arguments to see the help output...</pre>
|
|
</div>
|
|
</section>
|
|
</div>
|
|
|
|
<script src="/static/js/app.js"></script>
|
|
</body>
|
|
|
|
</html>
|