Skip to content

Commit 09fefa2

Browse files
committed
remove
1 parent d59c8d5 commit 09fefa2

File tree

6 files changed

+71
-1425
lines changed

6 files changed

+71
-1425
lines changed

internal/cmd/clipboard/AGENTS.md

Lines changed: 0 additions & 199 deletions
Original file line numberDiff line numberDiff line change
@@ -128,205 +128,6 @@ SGVsbG8sIFdvcmxkIQ==
128128
dkit clipboard paste | grep "search term"
129129
```
130130

131-
### history - Clipboard History
132-
133-
#### Purpose
134-
View and manage clipboard history.
135-
136-
#### Command Signature
137-
```bash
138-
dkit clipboard history [options]
139-
```
140-
141-
**Options:**
142-
- `--limit <n>` - Number of entries to show (default: 10)
143-
- `--all` - Show all history
144-
- `--clear` - Clear history
145-
- `--format <text|json>` - Output format
146-
- `--search <query>` - Search history
147-
148-
#### Output Format
149-
150-
**Text (default):**
151-
```
152-
[dkit] Clipboard history (last 10 items):
153-
154-
1. [2 minutes ago] Hello, World! (13 bytes)
155-
2. [5 minutes ago] dkit clipboard copy README.md (1,234 bytes)
156-
3. [10 minutes ago] https://github.com/user/repo (28 bytes)
157-
4. [1 hour ago] {
158-
"key": "value"
159-
} (45 bytes)
160-
5. [2 hours ago] Long text content... (2,456 bytes)
161-
162-
Use 'dkit clipboard history <n>' to view full content
163-
```
164-
165-
**View specific entry:**
166-
```bash
167-
dkit clipboard history 3
168-
169-
[dkit] Clipboard entry #3 (10 minutes ago):
170-
171-
https://github.com/user/repo
172-
```
173-
174-
**JSON:**
175-
```json
176-
{
177-
"history": [
178-
{
179-
"id": 1,
180-
"content": "Hello, World!",
181-
"timestamp": "2025-12-23T14:28:00Z",
182-
"size": 13,
183-
"type": "text/plain"
184-
}
185-
]
186-
}
187-
```
188-
189-
**Search:**
190-
```bash
191-
dkit clipboard history --search "github"
192-
193-
[dkit] Found 2 matches:
194-
195-
3. [10 minutes ago] https://github.com/user/repo
196-
7. [1 day ago] git clone https://github.com/...
197-
```
198-
199-
**Clear history:**
200-
```bash
201-
dkit clipboard history --clear
202-
203-
[dkit] Clear clipboard history? [y/N]: y
204-
[dkit] ✓ Clipboard history cleared (15 entries removed)
205-
```
206-
207-
### restore - Restore from History
208-
209-
#### Purpose
210-
Restore a previous clipboard entry.
211-
212-
#### Command Signature
213-
```bash
214-
dkit clipboard restore <id> [options]
215-
```
216-
217-
**Arguments:**
218-
- `id` - History entry ID or index
219-
220-
**Options:**
221-
- `--peek` - Show content without restoring
222-
223-
#### Output
224-
225-
```bash
226-
dkit clipboard restore 3
227-
228-
[dkit] Restored clipboard entry #3 to clipboard
229-
[dkit] Content: https://github.com/user/repo (28 bytes)
230-
```
231-
232-
**Peek without restoring:**
233-
```bash
234-
dkit clipboard restore 3 --peek
235-
236-
[dkit] Clipboard entry #3:
237-
238-
https://github.com/user/repo
239-
240-
(Not restored to clipboard)
241-
```
242-
243-
### transform - Transform Clipboard Content
244-
245-
#### Purpose
246-
Apply transformations to clipboard content.
247-
248-
#### Command Signature
249-
```bash
250-
dkit clipboard transform <operation> [options]
251-
```
252-
253-
**Arguments:**
254-
- `operation` - Transformation to apply
255-
256-
**Options:**
257-
- `--copy-result` - Copy transformed result back to clipboard (default: true)
258-
- `--output <file>` - Write result to file
259-
260-
#### Available Transformations
261-
262-
**Text transformations:**
263-
- `uppercase` - Convert to uppercase
264-
- `lowercase` - Convert to lowercase
265-
- `trim` - Remove leading/trailing whitespace
266-
- `reverse` - Reverse text
267-
- `base64-encode` - Encode as base64
268-
- `base64-decode` - Decode from base64
269-
- `url-encode` - URL encode
270-
- `url-decode` - URL decode
271-
- `json-pretty` - Pretty-print JSON
272-
- `json-minify` - Minify JSON
273-
- `markdown-to-html` - Convert Markdown to HTML
274-
- `html-to-text` - Extract text from HTML
275-
276-
#### Examples
277-
278-
**Uppercase:**
279-
```bash
280-
dkit clipboard transform uppercase
281-
282-
[dkit] Transformed clipboard content:
283-
284-
Original: Hello, World!
285-
Result: HELLO, WORLD!
286-
287-
✓ Result copied to clipboard
288-
```
289-
290-
**Pretty-print JSON:**
291-
```bash
292-
# Clipboard contains: {"key":"value","nested":{"a":1}}
293-
dkit clipboard transform json-pretty
294-
295-
[dkit] Transformed clipboard content:
296-
297-
{
298-
"key": "value",
299-
"nested": {
300-
"a": 1
301-
}
302-
}
303-
304-
✓ Result copied to clipboard
305-
```
306-
307-
**Base64 encode:**
308-
```bash
309-
dkit clipboard transform base64-encode
310-
311-
[dkit] Transformed clipboard content:
312-
313-
Original: Hello, World!
314-
Result: SGVsbG8sIFdvcmxkIQ==
315-
316-
✓ Result copied to clipboard
317-
```
318-
319-
**Chain transformations:**
320-
```bash
321-
dkit clipboard paste | \
322-
jq '.' | \
323-
dkit clipboard copy
324-
325-
# Or using transform
326-
dkit clipboard transform json-pretty
327-
dkit clipboard transform base64-encode
328-
```
329-
330131
### clear - Clear Clipboard
331132

332133
#### Purpose

internal/cmd/cron/AGENTS.md

Lines changed: 0 additions & 84 deletions
Original file line numberDiff line numberDiff line change
@@ -307,90 +307,6 @@ dkit cron generate --describe "every 6 hours"
307307
# Output: 0 */6 * * *
308308
```
309309

310-
### list - List System Cron Jobs
311-
312-
#### Purpose
313-
Display current user's cron jobs with descriptions.
314-
315-
#### Command Signature
316-
```bash
317-
dkit cron list [options]
318-
```
319-
320-
**Options:**
321-
- `--user <username>` - List jobs for specific user (requires sudo)
322-
- `--all` - List all users' cron jobs (requires sudo)
323-
- `--format <table|json>` - Output format
324-
325-
#### Output Format
326-
327-
**Table (default):**
328-
```
329-
[dkit] Cron jobs for user: john
330-
331-
SCHEDULE NEXT RUN COMMAND
332-
0 9 * * 1-5 Mon 09:00 (2h) ~/scripts/backup.sh
333-
0 */6 * * * Today 12:00 (30m) curl https://healthcheck.io/ping
334-
30 2 * * * Tomorrow 02:30 docker system prune -f
335-
@daily Tomorrow 00:00 ~/scripts/cleanup.sh
336-
```
337-
338-
**JSON:**
339-
```json
340-
{
341-
"user": "john",
342-
"jobs": [
343-
{
344-
"expression": "0 9 * * 1-5",
345-
"command": "~/scripts/backup.sh",
346-
"next_run": "2025-12-23T09:00:00Z",
347-
"description": "At 09:00 AM, Monday through Friday"
348-
}
349-
]
350-
}
351-
```
352-
353-
### diff - Compare Cron Schedules
354-
355-
#### Purpose
356-
Compare two cron expressions to show execution time differences.
357-
358-
#### Command Signature
359-
```bash
360-
dkit cron diff <expr1> <expr2> [options]
361-
```
362-
363-
**Arguments:**
364-
- `expr1` - First cron expression
365-
- `expr2` - Second cron expression
366-
367-
**Options:**
368-
- `--period <duration>` - Time period to compare (default: 7d)
369-
- `--format <text|json>` - Output format
370-
371-
#### Output Format
372-
373-
```
374-
[dkit] Comparing cron schedules over next 7 days
375-
376-
Expression 1: 0 */6 * * *
377-
Executions: 28 times
378-
Description: Every 6 hours
379-
380-
Expression 2: 0 9-17 * * 1-5
381-
Executions: 45 times
382-
Description: Every hour from 9 AM to 5 PM, weekdays only
383-
384-
Overlap:
385-
Both execute at same time: 10 occurrences
386-
Expression 1 only: 18 occurrences
387-
Expression 2 only: 35 occurrences
388-
389-
Recommendation:
390-
Expression 2 runs more frequently during business hours
391-
Expression 1 provides 24/7 coverage
392-
```
393-
394310
## Common Use Cases
395311

396312
### Understanding Existing Cron Jobs

0 commit comments

Comments
 (0)