A generic parser for slash command text input
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

chore: update for jsr

+55 -34
-3
deno.json
··· 7 7 "semiColons": false, 8 8 "singleQuote": true 9 9 }, 10 - "imports": { 11 - "std/": "https://deno.land/std@0.201.0/" 12 - }, 13 10 "tasks": { 14 11 "test": "deno fmt && deno check ./mod.ts && deno lint && deno test -A ./" 15 12 }
+54 -30
deno.lock
··· 1 1 { 2 - "version": "2", 2 + "version": "3", 3 + "packages": { 4 + "specifiers": { 5 + "jsr:@std/assert@^0.215.0": "jsr:@std/assert@0.215.0", 6 + "jsr:@std/fmt@^0.215.0": "jsr:@std/fmt@0.215.0", 7 + "jsr:@std/testing": "jsr:@std/testing@0.215.0" 8 + }, 9 + "jsr": { 10 + "@std/assert@0.215.0": { 11 + "dependencies": [ 12 + "jsr:@std/fmt@^0.215.0" 13 + ] 14 + }, 15 + "@std/fmt@0.215.0": {}, 16 + "@std/testing@0.215.0": { 17 + "dependencies": [ 18 + "jsr:@std/assert@^0.215.0" 19 + ] 20 + } 21 + } 22 + }, 3 23 "remote": { 4 - "https://deno.land/std@0.200.0/assert/_constants.ts": "8a9da298c26750b28b326b297316cdde860bc237533b07e1337c021379e6b2a9", 5 - "https://deno.land/std@0.200.0/assert/_diff.ts": "1a3c044aedf77647d6cac86b798c6417603361b66b54c53331b312caeb447aea", 6 - "https://deno.land/std@0.200.0/assert/_format.ts": "a69126e8a469009adf4cf2a50af889aca364c349797e63174884a52ff75cf4c7", 7 - "https://deno.land/std@0.200.0/assert/assert.ts": "9a97dad6d98c238938e7540736b826440ad8c1c1e54430ca4c4e623e585607ee", 8 - "https://deno.land/std@0.200.0/assert/assert_almost_equals.ts": "e15ca1f34d0d5e0afae63b3f5d975cbd18335a132e42b0c747d282f62ad2cd6c", 9 - "https://deno.land/std@0.200.0/assert/assert_array_includes.ts": "6856d7f2c3544bc6e62fb4646dfefa3d1df5ff14744d1bca19f0cbaf3b0d66c9", 10 - "https://deno.land/std@0.200.0/assert/assert_equals.ts": "d8ec8a22447fbaf2fc9d7c3ed2e66790fdb74beae3e482855d75782218d68227", 11 - "https://deno.land/std@0.200.0/assert/assert_exists.ts": "407cb6b9fb23a835cd8d5ad804e2e2edbbbf3870e322d53f79e1c7a512e2efd7", 12 - "https://deno.land/std@0.200.0/assert/assert_false.ts": "a9962749f4bf5844e3fa494257f1de73d69e4fe0e82c34d0099287552163a2dc", 13 - "https://deno.land/std@0.200.0/assert/assert_instance_of.ts": "09fd297352a5b5bbb16da2b5e1a0d8c6c44da5447772648622dcc7df7af1ddb8", 14 - "https://deno.land/std@0.200.0/assert/assert_is_error.ts": "b4eae4e5d182272efc172bf28e2e30b86bb1650cd88aea059e5d2586d4160fb9", 15 - "https://deno.land/std@0.200.0/assert/assert_match.ts": "c4083f80600bc190309903c95e397a7c9257ff8b5ae5c7ef91e834704e672e9b", 16 - "https://deno.land/std@0.200.0/assert/assert_not_equals.ts": "9f1acab95bd1f5fc9a1b17b8027d894509a745d91bac1718fdab51dc76831754", 17 - "https://deno.land/std@0.200.0/assert/assert_not_instance_of.ts": "0c14d3dfd9ab7a5276ed8ed0b18c703d79a3d106102077ec437bfe7ed912bd22", 18 - "https://deno.land/std@0.200.0/assert/assert_not_match.ts": "3796a5b0c57a1ce6c1c57883dd4286be13a26f715ea662318ab43a8491a13ab0", 19 - "https://deno.land/std@0.200.0/assert/assert_not_strict_equals.ts": "ca6c6d645e95fbc873d25320efeb8c4c6089a9a5e09f92d7c1c4b6e935c2a6ad", 20 - "https://deno.land/std@0.200.0/assert/assert_object_match.ts": "d8fc2867cfd92eeacf9cea621e10336b666de1874a6767b5ec48988838370b54", 21 - "https://deno.land/std@0.200.0/assert/assert_rejects.ts": "45c59724de2701e3b1f67c391d6c71c392363635aad3f68a1b3408f9efca0057", 22 - "https://deno.land/std@0.200.0/assert/assert_strict_equals.ts": "b1f538a7ea5f8348aeca261d4f9ca603127c665e0f2bbfeb91fa272787c87265", 23 - "https://deno.land/std@0.200.0/assert/assert_string_includes.ts": "b821d39ebf5cb0200a348863c86d8c4c4b398e02012ce74ad15666fc4b631b0c", 24 - "https://deno.land/std@0.200.0/assert/assert_throws.ts": "63784e951475cb7bdfd59878cd25a0931e18f6dc32a6077c454b2cd94f4f4bcd", 25 - "https://deno.land/std@0.200.0/assert/assertion_error.ts": "4d0bde9b374dfbcbe8ac23f54f567b77024fb67dbb1906a852d67fe050d42f56", 26 - "https://deno.land/std@0.200.0/assert/equal.ts": "9f1a46d5993966d2596c44e5858eec821859b45f783a5ee2f7a695dfc12d8ece", 27 - "https://deno.land/std@0.200.0/assert/fail.ts": "c36353d7ae6e1f7933d45f8ea51e358c8c4b67d7e7502028598fe1fea062e278", 28 - "https://deno.land/std@0.200.0/assert/mod.ts": "08d55a652c22c5da0215054b21085cec25a5da47ce4a6f9de7d9ad36df35bdee", 29 - "https://deno.land/std@0.200.0/assert/unimplemented.ts": "d56fbeecb1f108331a380f72e3e010a1f161baa6956fd0f7cf3e095ae1a4c75a", 30 - "https://deno.land/std@0.200.0/assert/unreachable.ts": "4600dc0baf7d9c15a7f7d234f00c23bca8f3eba8b140286aaca7aa998cf9a536", 31 - "https://deno.land/std@0.200.0/fmt/colors.ts": "a7eecffdf3d1d54db890723b303847b6e0a1ab4b528ba6958b8f2e754cf1b3bc", 32 - "https://deno.land/std@0.200.0/testing/asserts.ts": "b4e4b1359393aeff09e853e27901a982c685cb630df30426ed75496961931946" 24 + "https://jsr.io/@std/assert/0.215.0/_constants.ts": "a271e8ef5a573f1df8e822a6eb9d09df064ad66a4390f21b3e31f820a38e0975", 25 + "https://jsr.io/@std/assert/0.215.0/_diff.ts": "f8f568f6d3a36652deb4701303fe7a2a66bfec242682effe53211398e363c39e", 26 + "https://jsr.io/@std/assert/0.215.0/_format.ts": "0ba808961bf678437fb486b56405b6fefad2cf87b5809667c781ddee8c32aff4", 27 + "https://jsr.io/@std/assert/0.215.0/assert.ts": "501b416473ec27c71885aaf819e363c8df617f89ce68ae57fec7acf9d62743b2", 28 + "https://jsr.io/@std/assert/0.215.0/assert_almost_equals.ts": "77a20a203abff37146dc029afd14e7cce9c9c085c25a107a5f075ed49b646db0", 29 + "https://jsr.io/@std/assert/0.215.0/assert_array_includes.ts": "9f511b9b57d48f1ff643259192a66f855b8075a8fb9d9f3cdefc0e008cfe3466", 30 + "https://jsr.io/@std/assert/0.215.0/assert_equals.ts": "78139785a690be8e450ad13698287bfb5c50518833a6c4ccb96d6fe66dd9c573", 31 + "https://jsr.io/@std/assert/0.215.0/assert_exists.ts": "7ea6a5cbaf3ce2675adc863d11544ba0f0d6e61658c5f0a83b5aa999e48961f0", 32 + "https://jsr.io/@std/assert/0.215.0/assert_false.ts": "8941f89de0386609eb1749f334483d56420307997bbbba77a559c5fe7083a657", 33 + "https://jsr.io/@std/assert/0.215.0/assert_greater.ts": "441cfcab6ab8c06d6c54d5995d513a148c9ed7ec2d241c154e6a127b3f22f995", 34 + "https://jsr.io/@std/assert/0.215.0/assert_greater_or_equal.ts": "d841652741b8087235f3392abd6db387cc4ecfe91cbd9fbc721937789f325faa", 35 + "https://jsr.io/@std/assert/0.215.0/assert_instance_of.ts": "ab945d09a94ca382ac4e9044412a9414efe301ad0ae36b72c02159e7148321ed", 36 + "https://jsr.io/@std/assert/0.215.0/assert_is_error.ts": "823298a6a5bf5e51580932aadbb1cfb22a6945c502868dc9dca2a70bcf70062d", 37 + "https://jsr.io/@std/assert/0.215.0/assert_less.ts": "282d39e91ce16e33d5b8352771d97c81d840f1810ba7b65b64332eba5b0f0c50", 38 + "https://jsr.io/@std/assert/0.215.0/assert_less_or_equal.ts": "a68b8ae9fa056449b63c8d3fb771fe8a3747d958877096e85839b75f3c581576", 39 + "https://jsr.io/@std/assert/0.215.0/assert_match.ts": "7395d0d84346d9a81695559d11afe890137f1c469bb5cafb6aba1a7faaf142f8", 40 + "https://jsr.io/@std/assert/0.215.0/assert_not_equals.ts": "b08ac1034e4b9aedff0bad798df7880c8f977019a90e98a5e0e4f88c7dfa6353", 41 + "https://jsr.io/@std/assert/0.215.0/assert_not_instance_of.ts": "340861128c5a03071247fdc6011b8499fd277d9faeb14306a4af9cd642a302c3", 42 + "https://jsr.io/@std/assert/0.215.0/assert_not_match.ts": "f09d94377a6403800f7d8602a70bce27d3d6ff699cd95e141b43c35c3b0e798d", 43 + "https://jsr.io/@std/assert/0.215.0/assert_not_strict_equals.ts": "1028e690746157783c44cd0d17d88d17a57ece9d387a8cc8e15aef291ac98258", 44 + "https://jsr.io/@std/assert/0.215.0/assert_object_match.ts": "9f02fd409595a8b656ec9f436fe012932e3729a58e8292e7c4c5b9b50266da5f", 45 + "https://jsr.io/@std/assert/0.215.0/assert_rejects.ts": "af2d87faafdf44a3af69fd9e8952d5a07707d2b6b8c413f46ec3b90227539b3a", 46 + "https://jsr.io/@std/assert/0.215.0/assert_strict_equals.ts": "72d7b15c9cf128cd4fbb29fb794e1a2bc612b55935de035f17127587f8411e75", 47 + "https://jsr.io/@std/assert/0.215.0/assert_string_includes.ts": "c178bd97da03e2215494e729b2048ae68e780bf0b583a998a3bf808fbdb1eba2", 48 + "https://jsr.io/@std/assert/0.215.0/assert_throws.ts": "4209628c4fa3e569bb2924b289fad486f9e5feb0912bca6f60b484ddbfad7136", 49 + "https://jsr.io/@std/assert/0.215.0/assertion_error.ts": "dd027fb33707dbff22cd2ef9b55fdb70e2095876caf3c68ecfbb811505ecc022", 50 + "https://jsr.io/@std/assert/0.215.0/equal.ts": "166d9377ce8df4d53f676d9a568a13914c2323d9d3b2fd1096aafeb59f3c1edf", 51 + "https://jsr.io/@std/assert/0.215.0/fail.ts": "67579a1308b176d52756ded6d1e3149f87703648e59afc333ba5168fefeb8d7b", 52 + "https://jsr.io/@std/assert/0.215.0/mod.ts": "325df8c0683ad83a873b9691aa66b812d6275fc9fec0b2d180ac68a2c5efed3b", 53 + "https://jsr.io/@std/assert/0.215.0/unimplemented.ts": "ed3115f6fb271277e0522f3b18f020259900c385e3fa986f109a519a1cf25763", 54 + "https://jsr.io/@std/assert/0.215.0/unreachable.ts": "1e748f69f73c57f4de9ba1dba39306b86e0ad2c0915975608519a2bcf42c262f", 55 + "https://jsr.io/@std/fmt/0.215.0/colors.ts": "59b5de7c07cdc0322ed61b2d98da1ca4fbc9f576d45c2beee577a27556e52d63", 56 + "https://jsr.io/@std/testing/0.215.0/asserts.ts": "5cd80412824d40539c0ca984ab3ce9db090604b9a7085418b4ee7cc6ba193711" 33 57 } 34 58 }
+1 -1
mod.test.ts
··· 1 - import { assertEquals, assertThrows } from 'std/testing/asserts.ts' 1 + import { assertEquals, assertThrows } from 'jsr:@std/testing/asserts' 2 2 import parse, { isCommand, OptionType, parseCommand } from './mod.ts' 3 3 4 4 Deno.test('isCommand == true', () => {