fix: console output

main
sundowndev 2021-06-14 16:38:54 +02:00
parent bc2164a008
commit 5fa7c10296
5 changed files with 13 additions and 12 deletions

View File

@ -1,7 +1,7 @@
<!doctype html>
<html>
<head>
<title>Driftctl scan report</title>
<title>driftctl scan report</title>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<link rel="shortcut icon"
@ -12,7 +12,7 @@
<div class="container">
<div class="heading d-flex justify-space-between align-center">
<div>
<h1 class="heading-title mb-1">Driftctl scan report</h1>
<h1 class="heading-title mb-1">driftctl scan report</h1>
<span class="heading-subtitle">Coverage {{.Coverage}}%</span>
</div>
<div class="text--right">
@ -30,7 +30,7 @@
<div class="app-content">
{{ if (lt .Coverage 100) }}
<div class="d-flex justify-center mb-2">
<form id="filter-form" action="#">
<div>
<input type="text" name="resource-id-filter" placeholder="Search resources..." onkeyup="refreshState()">
<select name="resource-type-filter" onchange="refreshState()">
<option value="">Resource type</option>
@ -39,7 +39,7 @@
{{end}}
</select>
<button type="button" onclick="resetFilters()" class="reset-filter-btn">Reset filters</button>
</form>
</div>
</div>
<div class="tabs-wrapper">

View File

@ -255,6 +255,7 @@ h2 {
color: #747578;
transition: background-color 200ms;
border-radius: 3px;
font-size: 19px;
}
.tab:hover {

View File

@ -55,10 +55,10 @@ func GetOutput(config OutputConfig, quiet bool) Output {
switch config.Key {
case JSONOutputType:
return NewJSON(config.Options["path"])
case ConsoleOutputType:
fallthrough
case HTMLOutputType:
return NewHTML(config.Options["path"])
case ConsoleOutputType:
fallthrough
default:
return NewConsole()
}

View File

@ -1,7 +1,7 @@
<!doctype html>
<html>
<head>
<title>Driftctl scan report</title>
<title>driftctl scan report</title>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<link rel="shortcut icon"
@ -352,7 +352,7 @@ span.code-box-line-delete {
<div class="container">
<div class="heading d-flex justify-space-between align-center">
<div>
<h1 class="heading-title mb-1">Driftctl scan report</h1>
<h1 class="heading-title mb-1">driftctl scan report</h1>
<span class="heading-subtitle">Coverage 15%</span>
</div>
<div class="text--right">
@ -370,7 +370,7 @@ span.code-box-line-delete {
<div class="app-content">
<div class="d-flex justify-center mb-2">
<form id="filter-form" action="#">
<div>
<input type="text" name="resource-id-filter" placeholder="Search resources..." onkeyup="refreshState()">
<select name="resource-type-filter" onchange="refreshState()">
<option value="">Resource type</option>
@ -383,7 +383,7 @@ span.code-box-line-delete {
</select>
<button type="button" onclick="resetFilters()" class="reset-filter-btn">Reset filters</button>
</form>
</div>
</div>
<div class="tabs-wrapper">

View File

@ -370,14 +370,14 @@ span.code-box-line-delete {
<div class="app-content">
<div class="d-flex justify-center mb-2">
<form id="filter-form" action="#">
<div>
<input type="text" name="resource-id-filter" placeholder="Search resources..." onkeyup="refreshState()">
<select name="resource-type-filter" onchange="refreshState()">
<option value="">Resource type</option>
</select>
<button type="button" onclick="resetFilters()" class="reset-filter-btn">Reset filters</button>
</form>
</div>
</div>
<div class="tabs-wrapper">