bashly 0.9.4 → 1.0.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/bin/bashly +1 -1
  4. data/lib/bashly/cli.rb +1 -1
  5. data/lib/bashly/commands/add.rb +42 -90
  6. data/lib/bashly/commands/base.rb +1 -9
  7. data/lib/bashly/commands/doc.rb +7 -7
  8. data/lib/bashly/commands/generate.rb +28 -33
  9. data/lib/bashly/commands/init.rb +3 -5
  10. data/lib/bashly/commands/preview.rb +0 -2
  11. data/lib/bashly/commands/validate.rb +1 -9
  12. data/lib/bashly/concerns/validation_helpers.rb +0 -8
  13. data/lib/bashly/config_validator.rb +1 -9
  14. data/lib/bashly/docs/command.yml +1 -1
  15. data/lib/bashly/docs/env.yml +1 -1
  16. data/lib/bashly/docs/flag.yml +11 -1
  17. data/lib/bashly/libraries/base.rb +1 -1
  18. data/lib/bashly/{templates/lib → libraries/colors}/colors.sh +0 -0
  19. data/lib/bashly/libraries/{completions_function.rb → completions/completions_function.rb} +2 -2
  20. data/lib/bashly/libraries/{completions_script.rb → completions/completions_script.rb} +1 -1
  21. data/lib/bashly/libraries/{completions_yaml.rb → completions/completions_yaml.rb} +1 -1
  22. data/lib/bashly/{templates/lib → libraries/config}/config.sh +0 -0
  23. data/lib/bashly/libraries/{help.rb → help/help.rb} +7 -7
  24. data/lib/bashly/{templates → libraries}/help/help_command.sh +0 -0
  25. data/lib/bashly/{templates → libraries}/lib/sample_function.sh +0 -0
  26. data/lib/bashly/libraries/libraries.yml +85 -0
  27. data/lib/bashly/{templates → libraries/settings}/settings.yml +7 -1
  28. data/lib/bashly/{templates → libraries/strings}/strings.yml +0 -0
  29. data/lib/bashly/{templates → libraries}/test/approvals.bash +0 -0
  30. data/lib/bashly/{templates → libraries}/test/approve +0 -0
  31. data/lib/bashly/{templates/lib → libraries}/validations/validate_dir_exists.sh +0 -0
  32. data/lib/bashly/{templates/lib → libraries}/validations/validate_file_exists.sh +0 -0
  33. data/lib/bashly/{templates/lib → libraries}/validations/validate_integer.sh +0 -0
  34. data/lib/bashly/{templates/lib → libraries}/validations/validate_not_empty.sh +0 -0
  35. data/lib/bashly/{templates/lib → libraries/yaml}/yaml.sh +0 -0
  36. data/lib/bashly/library.rb +14 -25
  37. data/lib/bashly/library_source.rb +84 -0
  38. data/lib/bashly/message_strings.rb +1 -1
  39. data/lib/bashly/refinements/compose_refinements.rb +2 -2
  40. data/lib/bashly/script/command.rb +10 -4
  41. data/lib/bashly/script/flag.rb +1 -1
  42. data/lib/bashly/settings.rb +21 -4
  43. data/lib/bashly/version.rb +1 -1
  44. data/lib/bashly/views/command/long_usage.gtx +2 -2
  45. data/lib/bashly/views/command/usage_environment_variables.gtx +1 -1
  46. data/lib/bashly/views/command/usage_flags.gtx +1 -1
  47. metadata +46 -40
  48. data/lib/bashly/deprecation.rb +0 -27
  49. data/lib/bashly/libraries.yml +0 -60
@@ -1,60 +0,0 @@
1
- colors:
2
- files:
3
- - source: "templates/lib/colors.sh"
4
- target: "%{user_lib_dir}/colors.%{user_ext}"
5
-
6
- completions: :CompletionsFunction
7
- completions_script: :CompletionsScript
8
- completions_yaml: :CompletionsYAML
9
-
10
- config:
11
- files:
12
- - source: "templates/lib/config.sh"
13
- target: "%{user_lib_dir}/config.%{user_ext}"
14
-
15
- help: :Help
16
-
17
- lib:
18
- files:
19
- - source: "templates/lib/sample_function.sh"
20
- target: "%{user_lib_dir}/sample_function.%{user_ext}"
21
-
22
- settings:
23
- files:
24
- - source: "templates/settings.yml"
25
- target: "settings.yml"
26
-
27
- strings:
28
- files:
29
- - source: "templates/strings.yml"
30
- target: "%{user_source_dir}/bashly-strings.yml"
31
-
32
- test:
33
- files:
34
- - source: "templates/test/approvals.bash"
35
- target: "%{user_target_dir}/test/approvals.bash"
36
- - source: "templates/test/approve"
37
- target: "%{user_target_dir}/test/approve"
38
-
39
- post_install_message: |
40
- Edit your tests in !txtgrn!test/approve!txtrst! and then run:
41
-
42
- !txtpur!$ test/approve!txtrst!
43
-
44
- Docs: !undblu!https://github.com/DannyBen/approvals.bash
45
-
46
- validations:
47
- files:
48
- - source: "templates/lib/validations/validate_dir_exists.sh"
49
- target: "%{user_lib_dir}/validations/validate_dir_exists.%{user_ext}"
50
- - source: "templates/lib/validations/validate_file_exists.sh"
51
- target: "%{user_lib_dir}/validations/validate_file_exists.%{user_ext}"
52
- - source: "templates/lib/validations/validate_integer.sh"
53
- target: "%{user_lib_dir}/validations/validate_integer.%{user_ext}"
54
- - source: "templates/lib/validations/validate_not_empty.sh"
55
- target: "%{user_lib_dir}/validations/validate_not_empty.%{user_ext}"
56
-
57
- yaml:
58
- files:
59
- - source: "templates/lib/yaml.sh"
60
- target: "%{user_lib_dir}/yaml.%{user_ext}"