super-user-spark 0.4.0.3 → 0.4.0.4
raw patch · 27 files changed
+383/−1 lines, 27 files
Files
- super-user-spark.cabal +34/−1
- test_resources/end-to-end/bash.sus +8/−0
- test_resources/end-to-end/bash.sus.res +32/−0
- test_resources/exact_compile_test_src/alternatives.sus +6/−0
- test_resources/exact_compile_test_src/alternatives.sus.res +26/−0
- test_resources/exact_compile_test_src/bash.sus +7/−0
- test_resources/exact_compile_test_src/bash.sus.res +32/−0
- test_resources/exact_compile_test_src/internal_sparkoff.sus +27/−0
- test_resources/exact_compile_test_src/internal_sparkoff.sus.res +47/−0
- test_resources/exact_compile_test_src/nesting.sus +18/−0
- test_resources/exact_compile_test_src/nesting.sus.res +11/−0
- test_resources/exact_compile_test_src/sub.sus +8/−0
- test_resources/exact_compile_test_src/sub.sus.res +20/−0
- test_resources/exact_compile_test_src/sub/subfile.sus +3/−0
- test_resources/exact_compile_test_src/sub/subfile.sus.res +11/−0
- test_resources/hop_test/hop1dir/hop1.sus +7/−0
- test_resources/hop_test/hop1dir/hop2dir/hop2.sus +7/−0
- test_resources/hop_test/hop1dir/hop2dir/hop3dir/hop3.sus +6/−0
- test_resources/hop_test/root.sus +7/−0
- test_resources/shouldCompile/bash.sus +8/−0
- test_resources/shouldCompile/complex.sus +34/−0
- test_resources/shouldNotParse/empty_file.sus +0/−0
- test_resources/shouldNotParse/missing_implementation.sus +1/−0
- test_resources/shouldParse/empty_card.sus +1/−0
- test_resources/shouldParse/littered_with_comments.sus +6/−0
- test_resources/shouldParse/short_syntax.sus +11/−0
- test_resources/shouldParse/with_quotes.sus +5/−0
super-user-spark.cabal view
@@ -1,15 +1,48 @@ name: super-user-spark-version: 0.4.0.3+version: 0.4.0.4 license: MIT license-file: LICENSE description: Configure your dotfile deployment with a DSL. synopsis: Configure your dotfile deployment with a DSL. author: Tom Sydney Kerckhove maintainer: syd.kerckhove@gmail.com+homepage: https://github.com/NorfairKing/super-user-spark category: System build-type: Simple extra-source-files: README.md cabal-version: >=1.10++extra-source-files:+ test_resources/end-to-end/bash.sus+ test_resources/end-to-end/bash.sus.res+ test_resources/exact_compile_test_src/alternatives.sus+ test_resources/exact_compile_test_src/alternatives.sus.res+ test_resources/exact_compile_test_src/bash.sus+ test_resources/exact_compile_test_src/bash.sus.res+ test_resources/exact_compile_test_src/internal_sparkoff.sus+ test_resources/exact_compile_test_src/internal_sparkoff.sus.res+ test_resources/exact_compile_test_src/nesting.sus+ test_resources/exact_compile_test_src/nesting.sus.res+ test_resources/exact_compile_test_src/sub.sus+ test_resources/exact_compile_test_src/sub.sus.res+ test_resources/exact_compile_test_src/sub/subfile.sus+ test_resources/exact_compile_test_src/sub/subfile.sus.res+ test_resources/hop_test/hop1dir/hop1.sus+ test_resources/hop_test/hop1dir/hop2dir/hop2.sus+ test_resources/hop_test/hop1dir/hop2dir/hop3dir/hop3.sus+ test_resources/hop_test/root.sus+ test_resources/shouldCompile/bash.sus+ test_resources/shouldCompile/complex.sus+ test_resources/shouldNotParse/empty_file.sus+ test_resources/shouldNotParse/missing_implementation.sus+ test_resources/shouldParse/empty_card.sus+ test_resources/shouldParse/littered_with_comments.sus+ test_resources/shouldParse/short_syntax.sus+ test_resources/shouldParse/with_quotes.sus++source-repository head+ type: git+ location: https://github.com/NorfairKing/super-user-spark library hs-source-dirs: src
+ test_resources/end-to-end/bash.sus view
@@ -0,0 +1,8 @@+card bash {+ into subdir+ outof bash+ + .bashrc+ .bash_aliases+ .bash_profile+}
+ test_resources/end-to-end/bash.sus.res view
@@ -0,0 +1,32 @@+[+ {+ "deployment kind": "link",+ "directions": {+ "destination": "subdir/.bashrc",+ "sources": [+ "bash/.bashrc",+ "bash/bashrc"+ ]+ }+ },+ {+ "deployment kind": "link",+ "directions": {+ "destination": "subdir/.bash_aliases",+ "sources": [+ "bash/.bash_aliases",+ "bash/bash_aliases"+ ]+ }+ },+ {+ "deployment kind": "link",+ "directions": {+ "destination": "subdir/.bash_profile",+ "sources": [+ "bash/.bash_profile",+ "bash/bash_profile"+ ]+ }+ }+]
+ test_resources/exact_compile_test_src/alternatives.sus view
@@ -0,0 +1,6 @@+card alternatives {+ alternatives 1 2 3 4+ alternatives a b c d+ + file+}
+ test_resources/exact_compile_test_src/alternatives.sus.res view
@@ -0,0 +1,26 @@+[+ {+ "deployment kind": "link",+ "directions": {+ "destination": "file",+ "sources": [+ "1/a/file",+ "1/b/file",+ "1/c/file",+ "1/d/file",+ "2/a/file",+ "2/b/file",+ "2/c/file",+ "2/d/file",+ "3/a/file",+ "3/b/file",+ "3/c/file",+ "3/d/file",+ "4/a/file",+ "4/b/file",+ "4/c/file",+ "4/d/file"+ ]+ }+ }+]
+ test_resources/exact_compile_test_src/bash.sus view
@@ -0,0 +1,7 @@+card bash {+ into "~"++ .bashrc+ .bash_aliases+ .bash_profile+}
+ test_resources/exact_compile_test_src/bash.sus.res view
@@ -0,0 +1,32 @@+[+ {+ "deployment kind": "link",+ "directions": {+ "destination": "~/.bashrc",+ "sources": [+ ".bashrc",+ "bashrc"+ ]+ }+ },+ {+ "deployment kind": "link",+ "directions": {+ "destination": "~/.bash_aliases",+ "sources": [+ ".bash_aliases",+ "bash_aliases"+ ]+ }+ },+ {+ "deployment kind": "link",+ "directions": {+ "destination": "~/.bash_profile",+ "sources": [+ ".bash_profile",+ "bash_profile"+ ]+ }+ }+]
+ test_resources/exact_compile_test_src/internal_sparkoff.sus view
@@ -0,0 +1,27 @@+card one {+ spark card two+ spark card five+}++card two {+ two+ spark card three+ spark card four+}++card three {+ three+}++card four {+ four+}++card five {+ five+ spark card six+}++card six {+ six+}
+ test_resources/exact_compile_test_src/internal_sparkoff.sus.res view
@@ -0,0 +1,47 @@+[+ {+ "deployment kind": "link",+ "directions": {+ "destination": "two",+ "sources": [+ "two"+ ]+ }+ },+ {+ "deployment kind": "link",+ "directions": {+ "destination": "three",+ "sources": [+ "three"+ ]+ }+ },+ {+ "deployment kind": "link",+ "directions": {+ "destination": "four",+ "sources": [+ "four"+ ]+ }+ },+ {+ "deployment kind": "link",+ "directions": {+ "destination": "five",+ "sources": [+ "five"+ ]+ }+ },+ {+ "deployment kind": "link",+ "directions": {+ "destination": "six",+ "sources": [+ "six"+ ]+ }+ }+]
+ test_resources/exact_compile_test_src/nesting.sus view
@@ -0,0 +1,18 @@+card complex {+ into ~+ outof complex+ {+ into a+ outof x+ {+ into b+ outof y+ {+ into c+ outof z++ file+ }+ }+ }+}
+ test_resources/exact_compile_test_src/nesting.sus.res view
@@ -0,0 +1,11 @@+[+ {+ "deployment kind": "link",+ "directions": {+ "destination": "~/a/b/c/file",+ "sources": [+ "complex/x/y/z/file"+ ]+ }+ }+]
+ test_resources/exact_compile_test_src/sub.sus view
@@ -0,0 +1,8 @@+card sub {+ spark file sub/subfile.sus+ spark card other+}++card other {+ file.txt+}
+ test_resources/exact_compile_test_src/sub.sus.res view
@@ -0,0 +1,20 @@+[+ {+ "deployment kind": "link",+ "directions": {+ "destination": "thing.txt",+ "sources": [+ "sub/thing.txt"+ ]+ }+ },+ {+ "deployment kind": "link",+ "directions": {+ "destination": "file.txt",+ "sources": [+ "file.txt"+ ]+ }+ }+]
+ test_resources/exact_compile_test_src/sub/subfile.sus view
@@ -0,0 +1,3 @@+card subfile {+ thing.txt+}
+ test_resources/exact_compile_test_src/sub/subfile.sus.res view
@@ -0,0 +1,11 @@+[+ {+ "deployment kind": "link",+ "directions": {+ "destination": "thing.txt",+ "sources": [+ "thing.txt"+ ]+ }+ }+]
+ test_resources/hop_test/hop1dir/hop1.sus view
@@ -0,0 +1,7 @@+card hop1 {+ into b+ outof x+ + beta -> one+ spark file hop2dir/hop2.sus+}
+ test_resources/hop_test/hop1dir/hop2dir/hop2.sus view
@@ -0,0 +1,7 @@+card hop2 {+ into c+ outof y+ + gamma -> two+ spark file hop3dir/hop3.sus+}
+ test_resources/hop_test/hop1dir/hop2dir/hop3dir/hop3.sus view
@@ -0,0 +1,6 @@+card hop3 {+ into d+ outof z+ + delta -> three+}
+ test_resources/hop_test/root.sus view
@@ -0,0 +1,7 @@+card root {+ into a+ outof u++ alpha -> zero+ spark file hop1dir/hop1.sus+}
+ test_resources/shouldCompile/bash.sus view
@@ -0,0 +1,8 @@+card bash {+ into ~+ + .bashrc+ .bash_aliases+ .bash_profile+ .profile+}
+ test_resources/shouldCompile/complex.sus view
@@ -0,0 +1,34 @@+card main {+ spark card configs+ spark card poems+}++card configs {+ spark file bash.sus bash++ alternatives super-laptop shared+ into ~++ {+ outof zsh++ .zshrc+ .zshenv+ .zlogin+ }++ vim -> .vim+}++card poems {+ outof poems+ into poems+ {+ kind copy++ "A windows file with spaces.txt" -> clean+ }+ {+ kind link+ }+}
+ test_resources/shouldNotParse/empty_file.sus view
+ test_resources/shouldNotParse/missing_implementation.sus view
@@ -0,0 +1,1 @@+card "missing implementation"
+ test_resources/shouldParse/empty_card.sus view
@@ -0,0 +1,1 @@+card "empty" {}
+ test_resources/shouldParse/littered_with_comments.sus view
@@ -0,0 +1,6 @@+card [[muhaha]] bash #yadayada+ { # Wut+ into [[hehe]] ~+ out[[xD]]of bash[[files!]]+ bashrc -[[wut]]> .bashrc+ } # These comments are annoying, right?
+ test_resources/shouldParse/short_syntax.sus view
@@ -0,0 +1,11 @@+card "bash" {+ into ~++ # Without the dot shortcut+ test.txt+ file+ + # With the dot shortcut+ .bashrc+ .bash_aliases +}
+ test_resources/shouldParse/with_quotes.sus view
@@ -0,0 +1,5 @@+card name {+ "a"c->"x"+ "b"l->"y"+ "c"->"z"+}