oh-my-batch 0.3.0__tar.gz → 0.3.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: oh-my-batch
3
- Version: 0.3.0
3
+ Version: 0.3.1
4
4
  Summary:
5
5
  License: GPL
6
6
  Author: weihong.xu
@@ -13,7 +13,6 @@ Classifier: Programming Language :: Python :: 3.9
13
13
  Classifier: Programming Language :: Python :: 3.10
14
14
  Classifier: Programming Language :: Python :: 3.11
15
15
  Classifier: Programming Language :: Python :: 3.12
16
- Classifier: Programming Language :: Python :: 3.13
17
16
  Requires-Dist: fire (>=0.7.0,<0.8.0)
18
17
  Description-Content-Type: text/markdown
19
18
 
@@ -48,10 +47,12 @@ To make the best use of `oh-my-batch`, you need to know some shell tips.
48
47
  You can load useful functions from `oh-my-batch` this way:
49
48
 
50
49
  ```bash
51
- omb misc export-shell-func > omb-func.sh && source omb-func.sh && rm omb-func.sh
50
+ eval "$(omb misc export-shell-func)"
51
+ # or
52
+ omb misc export-shell-func > omb-func.sh && source omb-func.sh
52
53
  ```
53
54
 
54
- This will load some functions to your shell script, for example, `checkpoint`.
55
+ This will load extra functions to your shell script, for example, `checkpoint`.
55
56
 
56
57
  ### Generate files from different combinations of parameters
57
58
 
@@ -29,10 +29,12 @@ To make the best use of `oh-my-batch`, you need to know some shell tips.
29
29
  You can load useful functions from `oh-my-batch` this way:
30
30
 
31
31
  ```bash
32
- omb misc export-shell-func > omb-func.sh && source omb-func.sh && rm omb-func.sh
32
+ eval "$(omb misc export-shell-func)"
33
+ # or
34
+ omb misc export-shell-func > omb-func.sh && source omb-func.sh
33
35
  ```
34
36
 
35
- This will load some functions to your shell script, for example, `checkpoint`.
37
+ This will load extra functions to your shell script, for example, `checkpoint`.
36
38
 
37
39
  ### Generate files from different combinations of parameters
38
40
 
@@ -21,7 +21,7 @@ checkpoint() {
21
21
  fi
22
22
  }
23
23
 
24
- echo -e "${GREEN}Functiion: checkpoint${NC}"
24
+ echo -e "${GREEN}Function: checkpoint${NC}"
25
25
  cat <<EOF
26
26
  Usage:
27
27
  checkpoint <flag_file> <command> [arg1] [arg2] ...
@@ -60,7 +60,7 @@ def ensure_dir(path: str):
60
60
  """
61
61
  d = os.path.dirname(path)
62
62
  if d:
63
- os.makedirs(os.path.dirname(d), exist_ok=True)
63
+ os.makedirs(d, exist_ok=True)
64
64
 
65
65
 
66
66
  def mode_translate(mode: str):
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "oh-my-batch"
3
- version = "0.3.0"
3
+ version = "0.3.1"
4
4
  description = ""
5
5
  authors = ["weihong.xu <xuweihong.cn@gmail.com>"]
6
6
  license = "GPL"
File without changes