From da170efba1a47deab88294c5e545606c1dea9847 Mon Sep 17 00:00:00 2001 From: Kurt Maine Date: Fri, 15 Apr 2022 19:53:15 -0500 Subject: [PATCH] Simplify Copy to Clipboard --- .../Support/footer.html | 444 ++---------------- .../Support/parseTableData.rb | 7 +- 2 files changed, 50 insertions(+), 401 deletions(-) diff --git a/Typescript Interface.saBundle/Support/footer.html b/Typescript Interface.saBundle/Support/footer.html index a2a832e..db6df2a 100644 --- a/Typescript Interface.saBundle/Support/footer.html +++ b/Typescript Interface.saBundle/Support/footer.html @@ -1,403 +1,49 @@ diff --git a/Typescript Interface.saBundle/Support/parseTableData.rb b/Typescript Interface.saBundle/Support/parseTableData.rb index 277890f..22022a2 100644 --- a/Typescript Interface.saBundle/Support/parseTableData.rb +++ b/Typescript Interface.saBundle/Support/parseTableData.rb @@ -2,8 +2,11 @@ table_name = ARGV[0] require 'csv' -puts "
"
-puts "interface #{table_name.split('_').collect(&:capitalize).join} {"
+
+interface_name = table_name.split('_').collect(&:capitalize).join
+puts "
" +puts "
"
+puts "interface #{interface_name} {"
 CSV.parse(STDIN.read, headers: true)  do |row|
   fieldType = "unknown"
   # Lots of if statements, couldn't get a shorthand OR to work